diff --git a/contrib/haproxy/copyparty.conf b/contrib/haproxy/copyparty.conf index 9e61e388..fe0ce40c 100644 --- a/contrib/haproxy/copyparty.conf +++ b/contrib/haproxy/copyparty.conf @@ -17,8 +17,12 @@ defaults listen foo1 bind *:8081 + http-request add-header X-Forwarded-Proto https if { ssl_fc } + http-request add-header X-Forwarded-Proto http unless { ssl_fc } server srv1 127.0.0.1:3923 maxconn 512 listen foo2 bind *:8082 + http-request add-header X-Forwarded-Proto https if { ssl_fc } + http-request add-header X-Forwarded-Proto http unless { ssl_fc } server srv1 /dev/shm/party.sock maxconn 512