haproxy: add X-Forwarded-Proto to example (codeberg#6)

Reviewed-on: https://codeberg.org/9001/copyparty/pulls/6
This commit is contained in:
h3 2026-08-05 01:52:58 +02:00 committed by 9001
parent ef75220faf
commit 4f20738b71

View file

@ -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