updated haproxy state

This commit is contained in:
Paul 2023-02-19 12:21:59 +01:00
parent 7b7d96eac5
commit 33205b397f
2 changed files with 7 additions and 1 deletions

View File

@ -3,6 +3,9 @@ haproxy:
enabled: true enabled: true
packages: packages:
- haproxy - haproxy
- libcurl4-openssl-dev
- libmaxminddb-dev
- libjansson-dev
maps: maps:
- access - access
- domains - domains

View File

@ -135,8 +135,11 @@ frontend http from {{ haproxy.config.namespace }}
# Default HTTPS frontend # Default HTTPS frontend
frontend https from {{ haproxy.config.namespace }} frontend https from {{ haproxy.config.namespace }}
.if feature(QUIC)
bind quic4@*:{{ haproxy.config.https_port }},quic6@:::{{ haproxy.config.https_port }} v4v6 ssl crt {{ haproxy.config.acme_fullchains_dir }}{% if haproxy.config.http2 %} alpn h3,h2,http/1.1{% endif %} name https
.else
bind *:{{ haproxy.config.https_port }},:::{{ haproxy.config.https_port }} v4v6 ssl crt {{ haproxy.config.acme_fullchains_dir }}{% if haproxy.config.http2 %} alpn h2,http/1.1{% endif %} name https bind *:{{ haproxy.config.https_port }},:::{{ haproxy.config.https_port }} v4v6 ssl crt {{ haproxy.config.acme_fullchains_dir }}{% if haproxy.config.http2 %} alpn h2,http/1.1{% endif %} name https
#bind quic4@*:{{ haproxy.config.https_port }},quic6@:::{{ haproxy.config.https_port }} v4v6 ssl crt {{ haproxy.config.acme_fullchains_dir }}{% if haproxy.config.http2 %} alpn h2,http/1.1{% endif %} .endif
mode http mode http
option httplog option httplog
{% for name, service in haproxy.config.spoe.items() %} {% for name, service in haproxy.config.spoe.items() %}