reordered statements

This commit is contained in:
Joachim Lusiardi 2016-12-29 19:21:37 +01:00
parent 54a0571138
commit 40b9b26fa9

View File

@ -24,24 +24,27 @@ defaults
frontend http frontend http
bind *:80 bind *:80
reqadd X-Forwarded-Proto:\ http reqadd X-Forwarded-Proto:\ http
acl letsencrypt-acl path_beg /.well-known/acme-challenge/
# add X-Forwarded-For Header to request # add X-Forwarded-For Header to request
http-request add-header X-Forwarded-For %[src] http-request add-header X-Forwarded-For %[src]
redirect scheme https code 301 if !{ ssl_fc } redirect scheme https code 301 if !{ ssl_fc }
acl letsencrypt-acl path_beg /.well-known/acme-challenge/
use_backend letsencrypt-backend if letsencrypt-acl use_backend letsencrypt-backend if letsencrypt-acl
default_backend www-backend default_backend www-backend
frontend https frontend https
bind *:443 ssl crt /data/haproxy/cert.pem bind *:443 ssl crt /data/haproxy/cert.pem
reqadd X-Forwarded-Proto:\ https reqadd X-Forwarded-Proto:\ https
acl letsencrypt-acl path_beg /.well-known/acme-challenge/
# add X-Forwarded-For Header to request # add X-Forwarded-For Header to request
http-request add-header X-Forwarded-For %[src] http-request add-header X-Forwarded-For %[src]
acl letsencrypt-acl path_beg /.well-known/acme-challenge/
use_backend letsencrypt-backend if letsencrypt-acl use_backend letsencrypt-backend if letsencrypt-acl
default_backend www-backend default_backend www-backend
backend www-backend backend www-backend