forked from evolix/ansible-roles
haproxy: add some comments to default config
This commit is contained in:
parent
01a486b20a
commit
8465743973
|
@ -13,6 +13,7 @@ The **patch** part changes incrementally at each release.
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
* certbot: detect HAProxy cert directory
|
* certbot: detect HAProxy cert directory
|
||||||
|
* haproxy: add some comments to default config
|
||||||
* haproxy: enable stats frontend with access lists
|
* haproxy: enable stats frontend with access lists
|
||||||
* haproxy: preconfigure SSL with defaults
|
* haproxy: preconfigure SSL with defaults
|
||||||
* lxc-php: Install php-sqlite by default
|
* lxc-php: Install php-sqlite by default
|
||||||
|
|
|
@ -56,3 +56,27 @@ listen stats
|
||||||
http-request deny if !{ src -f /etc/haproxy/stats_access_ips }
|
http-request deny if !{ src -f /etc/haproxy/stats_access_ips }
|
||||||
http-request set-log-level silent
|
http-request set-log-level silent
|
||||||
{% endif %}
|
{% 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
|
||||||
|
|
Loading…
Reference in a new issue