[Django]-Nginx + proxy pas โ€“ 504 gateway timeout , timeout after 1min, 30 sec. Tried proxy_read_timeout but no luck

3๐Ÿ‘

I know OP has probably long moved on from this question, but the timeout settings should be in the server or http block not in the location block. Example:

server {
    proxy_connect_timeout 3600s;
    send_timeout 3600s;
    proxy_read_timeout 3600s;

    location / {
        proxy_pass http://localhost:8003/;
        include /etc/nginx/proxy_params;
    }
}

๐Ÿ‘คSam

0๐Ÿ‘

IN CASE thereโ€™s a NAT gateway between your NGINX instance & the destination (proxy_pass), this answer may help.

๐Ÿ‘คsnowpeak

Leave a comment