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.
This commit is contained in:
Carlo Landmeter 2021-08-04 11:03:53 +02:00
parent 0dd3d9a0bc
commit e1238f13d6

View File

@ -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}}