haproxy: add some comments to default config

This commit is contained in:
Jérémy Lecour 2020-06-14 23:27:29 +02:00 committed by Gitea
parent 17b49ccc3d
commit d26d501b2c
2 changed files with 25 additions and 0 deletions

View file

@ -13,6 +13,7 @@ The **patch** part changes incrementally at each release.
### Added
* certbot: detect HAProxy cert directory
* haproxy: add some comments to default config
* haproxy: enable stats frontend with access lists
* haproxy: preconfigure SSL with defaults
* lxc-php: Install php-sqlite by default

View file

@ -56,3 +56,27 @@ listen stats
http-request deny if !{ src -f /etc/haproxy/stats_access_ips }
http-request set-log-level silent
{% endif %}
# frontend http-https
# bind 0.0.0.0:80
# bind 0.0.0.0:443 ssl crt /etc/haproxy/ssl
#
# capture request header Host len 32
#
# option forwardfor
#
# acl self hdr(host) -i {{ ansible_fqdn }}
#
# # Detect Let's Encrypt challenge requests
# acl letsencrypt path_dir -i /.well-known/acme-challenge
#
# http-request set-header X-Forwarded-Proto https if { ssl_fc }
# http-request set-header X-Forwarded-Port 443 if { ssl_fc }
#
# use_backend local if letsencrypt || self
#
# backend local
# mode http
# option forwardfor
#
# server localhost 127.0.0.1:81 send-proxy-v2