From 45206f4413c253f3124ffbf0feacc39c1f1cdf33 Mon Sep 17 00:00:00 2001 From: Stefan Haun Date: Mon, 4 Jul 2022 13:59:13 +0200 Subject: [PATCH] Add proxy headers --- .../templates/apache-docker-proxy-site.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/setup-http-site-proxy/templates/apache-docker-proxy-site.j2 b/roles/setup-http-site-proxy/templates/apache-docker-proxy-site.j2 index 43958bd..287cb0e 100644 --- a/roles/setup-http-site-proxy/templates/apache-docker-proxy-site.j2 +++ b/roles/setup-http-site-proxy/templates/apache-docker-proxy-site.j2 @@ -30,5 +30,8 @@ SSLCertificateChainFile /usr/local/etc/dehydrated/certs/{{ site_name }}/chain.pem ProxyPass / http://{{ backend_host | default("localhost") }}:{{proxy_port}}/ + RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME} + RequestHeader set "X-Forwarded-SSL" expr=%{HTTPS} +