[DOCKER][nginx] Removing default nginx config through docker/nginx/domain.sh. The default config conflicts with 'localhost' server_name.

This commit is contained in:
Eliseu Amaro 2021-07-19 14:43:49 +01:00 committed by Hugo Sales
parent b42128014e
commit c33a65c45e
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
1 changed files with 4 additions and 0 deletions

View File

@ -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;" > \