From 9584d5a1c721b9b655fb0fa914cb6b28a3854683 Mon Sep 17 00:00:00 2001 From: Stefan Haun Date: Fri, 1 Jul 2022 16:17:24 +0200 Subject: [PATCH] Allow to set backend_host for http proxy --- .../setup-http-site-proxy/templates/apache-docker-proxy-site.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 18ab71e..43958bd 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 @@ -29,6 +29,6 @@ SSLCertificateKeyFile /usr/local/etc/dehydrated/certs/{{ site_name }}/privkey.pem SSLCertificateChainFile /usr/local/etc/dehydrated/certs/{{ site_name }}/chain.pem - ProxyPass / http://localhost:{{proxy_port}}/ + ProxyPass / http://{{ backend_host | default("localhost") }}:{{proxy_port}}/