From 956c67481f97a2bb4d73f40928344df39ed8ee1a Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Wed, 17 Jun 2020 23:15:02 +0200 Subject: [PATCH] Template out nginx.conf --- compose.yml | 3 ++- nginx.conf => nginx.conf.tmpl | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) rename nginx.conf => nginx.conf.tmpl (95%) 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;