Allow to set backend_host for http proxy

This commit is contained in:
Stefan Haun 2022-07-01 16:17:24 +02:00
parent d868842adf
commit 9584d5a1c7

View file

@ -29,6 +29,6 @@
SSLCertificateKeyFile /usr/local/etc/dehydrated/certs/{{ site_name }}/privkey.pem SSLCertificateKeyFile /usr/local/etc/dehydrated/certs/{{ site_name }}/privkey.pem
SSLCertificateChainFile /usr/local/etc/dehydrated/certs/{{ site_name }}/chain.pem SSLCertificateChainFile /usr/local/etc/dehydrated/certs/{{ site_name }}/chain.pem
ProxyPass / http://localhost:{{proxy_port}}/ ProxyPass / http://{{ backend_host | default("localhost") }}:{{proxy_port}}/
</VirtualHost> </VirtualHost>
</IfFile> </IfFile>