Adjust nginx timeout

This commit is contained in:
tcely
2025-03-03 09:10:53 -05:00
committed by GitHub
parent f94474093a
commit 663dbd48e1

View File

@@ -103,15 +103,16 @@ http {
# Authentication and proxying
location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host localhost:8080;
proxy_set_header Host localhost:$proxy_port;
proxy_set_header X-Forwarded-Host $x_forwarded_host;
proxy_set_header X-Forwarded-Port $x_forwarded_port;
proxy_set_header X-Forwarded-Proto $x_forwarded_proto;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_redirect off;
proxy_read_timeout 59;
proxy_connect_timeout 10;
# this read timeout should be lower than gunicorn's timeout
proxy_read_timeout 89s;
proxy_connect_timeout 10s;
}
# File dwnload and streaming