From 958c16e02fc15a287bb841feeec99461565b0498 Mon Sep 17 00:00:00 2001 From: "Chinmay D. Pai" Date: Tue, 30 Mar 2021 13:51:20 +0530 Subject: [PATCH] chore: add SKIP_NGINX_TEMPLATE_GENERATION to compose Signed-off-by: Chinmay D. Pai --- docker-compose.yml | 1 + env-example | 1 + env-local | 1 + env-production | 1 + 4 files changed, 4 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 0d538943..457847a8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -37,6 +37,7 @@ services: - FRAPPE_PY_PORT=8000 - FRAPPE_SOCKETIO=frappe-socketio - SOCKETIO_PORT=9000 + - SKIP_NGINX_TEMPLATE_GENERATION=${SKIP_NGINX_TEMPLATE_GENERATION} labels: - "traefik.enable=true" - "traefik.http.routers.erpnext-nginx.rule=Host(${SITES})" diff --git a/env-example b/env-example index 2ca5598c..a9c5414b 100644 --- a/env-example +++ b/env-example @@ -4,3 +4,4 @@ MARIADB_HOST=mariadb MYSQL_ROOT_PASSWORD=admin SITES=your.domain.com LETSENCRYPT_EMAIL=your.email@your.domain.com +SKIP_NGINX_TEMPLATE_GENERATION=0 diff --git a/env-local b/env-local index 2b331a22..639bbb54 100644 --- a/env-local +++ b/env-local @@ -14,3 +14,4 @@ HTTPS_REDIRECT_RULE_LABEL=erpnext.local.no-redirect-rule HTTPS_REDIRECT_ENTRYPOINT_LABEL=erpnext.local.no-entrypoint HTTPS_REDIRECT_MIDDLEWARE_LABEL=erpnext.local.no-middleware HTTPS_USE_REDIRECT_MIDDLEWARE_LABEL=erpnext.local-no-redirect-middleware +SKIP_NGINX_TEMPLATE_GENERATION=0 diff --git a/env-production b/env-production index 2ac0e75c..47ff1458 100644 --- a/env-production +++ b/env-production @@ -14,3 +14,4 @@ HTTPS_REDIRECT_RULE_LABEL=traefik.http.routers.http-catchall.rule=hostregexp(`{h HTTPS_REDIRECT_ENTRYPOINT_LABEL=traefik.http.routers.http-catchall.entrypoints=web HTTPS_REDIRECT_MIDDLEWARE_LABEL=traefik.http.routers.http-catchall.middlewares=redirect-to-https HTTPS_USE_REDIRECT_MIDDLEWARE_LABEL=traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https +SKIP_NGINX_TEMPLATE_GENERATION=0