-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnginx.conf
35 lines (30 loc) · 1.11 KB
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
events { }
http {
server {
listen 80;
# Proxy requests for / to the Flask app running on port 5001
location / {
proxy_pass http://flask_app:5001;
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;
}
# location /play/ {
# proxy_pass http://flask_app:5001;
# 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;
# # Disable buffering for video files
# proxy_request_buffering off;
# proxy_buffering off;
# }
# Serve static files
# location /static/ {
# alias /opt/improver/app/static/; # Ensure this path matches the mounted directory
# expires 30d;
# add_header Cache-Control "public, max-age=2592000";
# }
}
}