Welcome! Log In Create A New Profile

Advanced

Problems with nginx reverse proxy...

BRM
May 08, 2015 04:12PM
I have a python application hosted under gunicorn that is expected to have long lived requests.It works just fine if we hit the application directly; however, we want to have nginx in front of it and are having issues with 504 errors.
I found some settings on-line that seem to be what we want to change, specifically the proxy_*_timeouts and send_timeout, and applied them to an environment. However, no matter what I try it always fails at 60 seconds.Here's the settings I am presently trying:

       # Force HTTP/1.1 over proxy and its Keep-Alive functionality
       proxy_http_version 1.1;
       proxy_set_header Connection "";

       # Disable request buffering so requests go immediately to server
       proxy_request_buffering off;

       # Timeouts
       # Connect, Send Normal Timeout (60 seconds) OK
       # Proxy Back-end Timeout (10m default) probably needs to be long
       # Read/Client Send Timeout (60 second default) must be very long
       proxy_timeout 3600;
       proxy_connect_timeout 1800;
       proxy_read_timeout 1800;
       proxy_send_timeout 1800;
       send_timeout 1800;

These are all applied on the location second. I've tried these setting under both the location section and the server section, but there doesn't seem to be any difference.

What am I missing?
TIA,
Ben
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Problems with nginx reverse proxy...

BRM May 08, 2015 04:12PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 296
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready