-
By default the /etc/nginx/conf.d/nginx.conf is created for you.... and it looks something like this: This is done by the script "entrypoint.sh" ... which has a bunch of "content_server= ... " ending with a print "$content_server" > /etc/nginx/conf.d/nginx I need to be able to add some more locations to the server definition block... specifically a location that returns a 404 for files that end in json... which needs to look like this: location ~ (.json$) {return 404;} I can only think of ugly ways to do this...
Dont really like either one of my ideas. What is the proper way? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It can probably be done with this: https://github.com/tiangolo/uwsgi-nginx-flask-docker#customizing-nginx-additional-configurations |
Beta Was this translation helpful? Give feedback.
It can probably be done with this: https://github.com/tiangolo/uwsgi-nginx-flask-docker#customizing-nginx-additional-configurations