diff --git a/compose.yml b/compose.yml index 396297a..0751035 100644 --- a/compose.yml +++ b/compose.yml @@ -105,4 +105,5 @@ secrets: configs: nginx-conf: name: ${STACK_NAME}-nginx-conf-${NGINX_CONF_VERSION} - file: nginx.conf + file: nginx.conf.tmpl + template_driver: golang diff --git a/nginx.conf b/nginx.conf.tmpl similarity index 95% rename from nginx.conf rename to nginx.conf.tmpl index 72a710a..37a5d31 100644 --- a/nginx.conf +++ b/nginx.conf.tmpl @@ -16,7 +16,7 @@ http { server { listen 80 default; - server_name invoices.zzp.decentral1.se; + server_name {{ env "DOMAIN" }}; root /var/www/app/public;