From c33a65c45e234fb89a92b1ab6b521b1f0556a48d Mon Sep 17 00:00:00 2001 From: Eliseu Amaro Date: Mon, 19 Jul 2021 14:43:49 +0100 Subject: [PATCH] [DOCKER][nginx] Removing default nginx config through docker/nginx/domain.sh. The default config conflicts with 'localhost' server_name. --- docker/nginx/domain.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker/nginx/domain.sh b/docker/nginx/domain.sh index 1fa3475085..504624f34d 100755 --- a/docker/nginx/domain.sh +++ b/docker/nginx/domain.sh @@ -1,5 +1,9 @@ #!/bin/sh +# There's no point in keeping default nginx conf +# Furthermore, this is an issue when a developer is using localhost as the instance domain +rm /etc/nginx/conf.d/default.conf + # Can't do sed inplace, because the file would be busy cat /var/nginx/social.conf | \ sed -r "s/%hostname%/${WEB_DOMAIN}/g;" > \