nginx.conf 382 B

12345678910111213141516
  1. server {
  2. listen 80;
  3. server_name localhost;
  4. location / {
  5. proxy_pass http://flask:8080;
  6. proxy_set_header Host $host;
  7. proxy_set_header X-Real-IP $remote_addr;
  8. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  9. proxy_set_header X-Forwarded-Proto $scheme;
  10. }
  11. location /static {
  12. alias /app/app/static;
  13. }
  14. }