Template haproxy better

This commit is contained in:
Jake Howard
2020-01-17 22:56:45 +00:00
parent 78fa36f20a
commit f6ffb1ceef
3 changed files with 31 additions and 28 deletions

View File

@ -40,7 +40,7 @@ defaults
listen https
bind *:443
mode tcp
server default {{ wireguard.intersect.ip }}:443 check send-proxy
server default {{ wireguard.clients.intersect.ip }}:443 send-proxy
listen http
bind *:80
@ -48,15 +48,13 @@ listen http
stats show-node
stats uri /haproxy
stats auth stats:{{ haproxy.stats_pass }}
server default {{ wireguard.intersect.ip }}:80 check
server default {{ wireguard.clients.intersect.ip }}:80 check
{% for port in haproxy.exposed_ports %}
listen matrix
bind *:8448
listen expose_{{ port }}
bind *:{{ port }}
mode tcp
server default {{ wireguard.clients.intersect.ip }}:8448 check
server default {{ wireguard.clients.intersect.ip }}:{{ port }}
listen gitea
bind *:3022
mode tcp
server default {{ wireguard.clients.intersect.ip }}:3022 check
{% endfor %}