x-forwarded-proto
This commit is contained in:
parent
7747b84f1a
commit
2410922979
|
@ -40,7 +40,7 @@ defaults
|
|||
errorfile 504 /etc/haproxy/errors/504.http
|
||||
|
||||
listen stats
|
||||
bind *:8088 ssl crt /etc/ssl/haproxy
|
||||
bind *:8080 ssl crt /etc/ssl/haproxy
|
||||
|
||||
stats enable
|
||||
stats uri /
|
||||
|
@ -61,7 +61,8 @@ frontend https
|
|||
# capture du domaine demandé pour les logs
|
||||
capture request header Host len 32
|
||||
|
||||
reqadd X-Forwarded-Proto:\ https
|
||||
http-request set-header X-Forwarded-Proto http if !{ ssl_fc }
|
||||
http-request set-header X-Forwarded-Proto https if { ssl_fc }
|
||||
|
||||
# acl letsencrypt path_dir -i /.well-known/acme-challenge
|
||||
# use_backend letsencrypt if letsencrypt
|
||||
|
|
Loading…
Reference in a new issue