diff --git a/docker/production/web-server/entrypoint.sh b/docker/production/web-server/entrypoint.sh index 4bd93726..4365e2cd 100644 --- a/docker/production/web-server/entrypoint.sh +++ b/docker/production/web-server/entrypoint.sh @@ -1,9 +1,9 @@ #!/bin/sh -if [ -z "${CP_HOST_BACK}" ] +if [ -z "${CP_APP_HOSTNAME}" ] then - echo "CP_HOST_BACK is empty, using default" - CP_HOST_BACK="back" + echo "CP_APP_HOSTNAME is empty, using default" + CP_APP_HOSTNAME="app" fi -sed -i "s/CP_HOST_BACK/${CP_HOST_BACK}/" /etc/nginx/nginx.conf +sed -i "s/CP_APP_HOSTNAME/${CP_APP_HOSTNAME}/" /etc/nginx/nginx.conf nginx -g "daemon off;" diff --git a/docker/production/web-server/nginx.conf b/docker/production/web-server/nginx.conf index 8000c777..425dcf24 100644 --- a/docker/production/web-server/nginx.conf +++ b/docker/production/web-server/nginx.conf @@ -27,7 +27,7 @@ http { real_ip_header X-Real-IP; upstream php-handler { - server CP_HOST_BACK:9000; + server CP_APP_HOSTNAME:9000; } server {