From 1d6e1da284109540ea26ae5bd23f0f33b25c4ce8 Mon Sep 17 00:00:00 2001 From: bucde Date: Wed, 15 Sep 2021 19:32:06 +0200 Subject: [PATCH] feat: change nginx config file for setup script usage --- nginx.conf => nginx.conf.orig | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) rename nginx.conf => nginx.conf.orig (81%) diff --git a/nginx.conf b/nginx.conf.orig similarity index 81% rename from nginx.conf rename to nginx.conf.orig index c8faf18..28f812a 100644 --- a/nginx.conf +++ b/nginx.conf.orig @@ -1,12 +1,9 @@ server { - # Listen for connection on (internal) port 80 listen 80; location / { - # Change 'inventree-server' to the name of the inventree server container, - # and '8000' to the INVENTREE_WEB_PORT (if not default) - proxy_pass http://inventree-server:8000; + proxy_pass http://${INVENTREE_CORE_CONTAINER_NAME}:8000; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; @@ -46,7 +43,7 @@ server { location /auth { internal; - proxy_pass http://inventree-server:8000/auth/; + proxy_pass http://${INVENTREE_CORE_CONTAINER_NAME}:8000/auth/; proxy_pass_request_body off; proxy_set_header Content-Length "";