Flask now runs on Gunicorn, and runs through NGinx

This commit is contained in:
2025-01-22 00:55:18 +00:00
parent 043effb6db
commit ca33ca6b70
6 changed files with 13 additions and 13 deletions

View File

@@ -32,12 +32,14 @@ http {
application/vnd.apple.mpegurl m3u8;
video/mp2t ts;
}
}
root /tmp;
add_header Cache-Control no-cache;
add_header Access-Control-Allow-Origin *;
autoindex on; # Enable directory indexing
location / {
proxy_pass http://127.0.0.1:5000; # flask-app is the name of the Flask container in docker-compose
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
}