From a120fb3833202dbb93e438d960e2c69be4ca731c Mon Sep 17 00:00:00 2001 From: Lugrim Date: Wed, 17 Jan 2024 18:10:54 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Changed=20ports=20configuration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - The frontend docker can now can take a `BACKEND_PORT` environment variable --- client/docker-start.sh | 2 ++ client/nginx.conf.docker | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/client/docker-start.sh b/client/docker-start.sh index 0b2bec8a5..e3025df26 100755 --- a/client/docker-start.sh +++ b/client/docker-start.sh @@ -3,6 +3,8 @@ # Integrate environment variables sed -i "s|__BACKEND__|${BACKEND_HOST}|" \ /etc/nginx/nginx.conf +sed -i "s|__BACKEND_PORT__|${BACKEND_PORT:-6666}|" \ + /etc/nginx/nginx.conf sed -i "s|__BASEURL__|${BASE_URL:-/}|g" \ /var/www/index.htm \ /var/www/manifest.json diff --git a/client/nginx.conf.docker b/client/nginx.conf.docker index 98c18b35e..de76f9245 100644 --- a/client/nginx.conf.docker +++ b/client/nginx.conf.docker @@ -20,7 +20,7 @@ http { keepalive_timeout 65; upstream backend { - server __BACKEND__:6666; + server __BACKEND__:__BACKEND_PORT__; } server {