29 lines
629 B
INI
29 lines
629 B
INI
global
|
|
daemon
|
|
maxconn 256
|
|
|
|
defaults
|
|
mode http
|
|
timeout connect 5000ms
|
|
timeout client 50000ms
|
|
timeout server 50000ms
|
|
|
|
listen http-in
|
|
bind *:80
|
|
{% for host in groups['worker'] %}
|
|
server server-{{hostvars[host].ansible_nodename}} {{ hostvars[host].wg_ip }}:30080 maxconn 32
|
|
{% endfor %}
|
|
|
|
listen https-in
|
|
bind *:443
|
|
mode tcp
|
|
option tcplog
|
|
timeout client 1m
|
|
option log-health-checks
|
|
option redispatch
|
|
log global
|
|
timeout connect 10s
|
|
timeout server 1m
|
|
{% for host in groups['worker'] %}
|
|
server server-{{hostvars[host].ansible_nodename}} {{ hostvars[host].wg_ip }}:30143 check
|
|
{% endfor %}
|