Only add timeout for core HTTP ports

This commit is contained in:
Jake Howard 2020-03-31 19:27:47 +01:00
parent 335992c9e9
commit f32e0bfe59
Signed by: jake
GPG Key ID: 57AFB45680EDD477

View File

@ -14,10 +14,6 @@ defaults
mode http
option httplog
option dontlognull
timeout http-request 60s
timeout connect 10s
timeout client 10s
timeout server 10s
errorfile 400 /etc/haproxy/errors/400.http
errorfile 403 /etc/haproxy/errors/403.http
errorfile 408 /etc/haproxy/errors/408.http
@ -29,6 +25,10 @@ defaults
listen https
bind *:443
mode tcp
timeout http-request 60s
timeout connect 10s
timeout client 10s
timeout server 10s
server default {{ wireguard.clients.intersect.ip }}:443 send-proxy
listen http
@ -37,6 +37,10 @@ listen http
stats show-node
stats uri /haproxy
stats auth stats:{{ haproxy.stats_pass }}
timeout http-request 60s
timeout connect 10s
timeout client 10s
timeout server 10s
server default {{ wireguard.clients.intersect.ip }}:80 check
{% for port in haproxy.exposed_ports %}