mirror of
https://github.com/FuzzyGrim/Yamtrack.git
synced 2026-03-03 02:27:01 +00:00
fix: update nginx configuration to streamline proxy settings for Gunicorn
This commit is contained in:
15
nginx.conf
15
nginx.conf
@@ -34,6 +34,14 @@ http {
|
||||
add_header X-Content-Type-Options "nosniff" always;
|
||||
add_header Referrer-Policy "no-referrer-when-downgrade" always;
|
||||
|
||||
# Proxy to Gunicorn
|
||||
location / {
|
||||
proxy_pass http://app_server;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
location /health/ {
|
||||
access_log off;
|
||||
proxy_pass http://app_server;
|
||||
@@ -49,12 +57,5 @@ http {
|
||||
add_header Cache-Control "public";
|
||||
}
|
||||
|
||||
# Proxy to Gunicorn
|
||||
location / {
|
||||
proxy_pass http://app_server;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user