project.conf 417 B

12345678910111213141516171819
  1. server {
  2. listen 9999;
  3. server_name docker_flask_gunicorn_nginx;
  4. location / {
  5. proxy_pass http://flask_app:9001;
  6. # Do not change this
  7. proxy_set_header Host $host;
  8. proxy_set_header X-Real-IP $remote_addr;
  9. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  10. }
  11. location /static {
  12. rewrite ^/static(.*) /$1 break;
  13. root /static;
  14. }
  15. }