Add proxy headers

This commit is contained in:
Stefan Haun 2022-07-04 13:59:13 +02:00
parent 21b6fe0335
commit 45206f4413

View file

@ -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}
</VirtualHost>
</IfFile>