From 4f20738b7176dc087bf28a7e1b1448a7dfdbd783 Mon Sep 17 00:00:00 2001 From: h3 Date: Wed, 5 Aug 2026 01:52:58 +0200 Subject: [PATCH] haproxy: add X-Forwarded-Proto to example (codeberg#6) Reviewed-on: https://codeberg.org/9001/copyparty/pulls/6 --- contrib/haproxy/copyparty.conf | 4 ++++ 1 file changed, 4 insertions(+) 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