NginxProxyManager / nginx-proxy-manager

Docker container for managing Nginx proxy hosts with a simple, powerful interface
https://nginxproxymanager.com
MIT License
23.27k stars 2.7k forks source link

keepalive.. per backend? #4162

Open bcookatpcsd opened 1 week ago

bcookatpcsd commented 1 week ago

tl;dr: (how do I correctly add keepalive_timeout to my backend..)

Everything is working, 6 hosts working as configured.

Looking to make the 'unifi' controller app more responsive..

I see in nginx.conf

http{

..

keepalive_timeout 90s;

..

but in

/data/nginx/proxy_host/

[1-6].conf I do not see keepalive_timeout set in each backend..

In the nginx docs keepalive has no default but keepalive_timeout has 60s default.. but it's in the context of upstream

so I create /data/custom/server_proxy.conf and added:

keepalive 2; keepalive_timeout 90s;

and restarted the app..

am I missing something?

Or is something missing..

image

image

Where is server_proxy.conf defined to be used?

Thank you in advance..

bcookatpcsd commented 1 week ago

missed including this..

tcpdump -v -i eno1.69 -n -q dst host 10.20.18.129 -A

.bP...?)..GET /speedtest.js HTTP/1.1
Host: files.tech.domain.internal
X-Forwarded-Scheme: http
X-Forwarded-Proto: http
X-Forwarded-For: 10.120.148.95
X-Real-IP: 10.120.148.95
Connection: close
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:132.0) Gecko/20100101 Firefox/132.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Sec-GPC: 1
Referer: http://files.tech.domain.internal/
Priority: u=2

was expecting to see Keep-Alive: headers..