-
Related to: I'm using Nuxt to serv my app, but it doesn't ship with the possibility to serve static files (like adding new avatars under Right now I added a new nginx container on which I mount the volume and override the path with VIRTUAL_PAST for the same domain. I was wondering if it could be an easy way to just specify to nginx-proxy to do it instead (avoiding to pop an nginx container just for that). I'm just looking to say that if you get a request to the host with path /img/avatars/* to serv a mounted folder in nginx-proxy instead of sending the request to my nuxt container. Is there any easy way to do so ? (original quest was post in 2017) Thanks. Note: Basically I just wand to add a custom location under my generated server block in
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes ok, in the end was pretty simple. : https://github.com/nginx-proxy/nginx-proxy/tree/main/docs#per-virtual_host just wrote a custom conf
and mounted it there: works like a charm. |
Beta Was this translation helpful? Give feedback.
Yes ok, in the end was pretty simple. : https://github.com/nginx-proxy/nginx-proxy/tree/main/docs#per-virtual_host
just wrote a custom conf
static.conf
:and mounted it there:
/etc/nginx/vhost.d/mydomain.com
works like a charm.