12345678910111213141516171819 |
- server {
- listen 9999;
- server_name docker_flask_gunicorn_nginx;
- location / {
- proxy_pass http://flask_app:9001;
- # Do not change this
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- }
- location /static {
- rewrite ^/static(.*) /$1 break;
- root /static;
- }
- }
|