From e1238f13d675af901fbc06b87a1fb44cb4cad807 Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Wed, 4 Aug 2021 11:03:53 +0200 Subject: [PATCH] https_proxy: fix setting of ALLOWED_DOMAINS The template is not correctly checking if DEV_MODE is set to true. This will always set ALLOWED_DOMAINS to an empty string and allowing to generate certificates for any domain that points to the application. --- docker-compose.tmpl.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose.tmpl.yml b/docker-compose.tmpl.yml index 2e86700..29add07 100644 --- a/docker-compose.tmpl.yml +++ b/docker-compose.tmpl.yml @@ -311,10 +311,10 @@ services: - ./mod/https/site-ipv4only.conf:/etc/nginx/conf.d/bbb-docker.conf {{end}} environment: - {{ if not .Env.DEV_MODE }} - ALLOWED_DOMAINS: ${DOMAIN} - {{else}} + {{ if isTrue .Env.DEV_MODE }} ALLOWED_DOMAINS: "" + {{else}} + ALLOWED_DOMAINS: ${DOMAIN} {{end}} network_mode: host {{end}}