nginx proxy buffers and timeouts

This commit is contained in:
Dmitry Belyaev 2023-05-16 07:53:16 +00:00
parent 4038c05b4d
commit ab9d16d2b8

View File

@ -47,6 +47,14 @@ server {
limit_conn perip 128; limit_conn perip 128;
location / { location / {
proxy_connect_timeout 159s;
proxy_send_timeout 600;
proxy_read_timeout 600;
proxy_buffer_size 256k;
proxy_buffers 32 64k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_redirect off; proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;