forked from GNUsocial/gnu-social
[DOCKER][nginx] Removing default nginx config through docker/nginx/domain.sh. The default config conflicts with 'localhost' server_name.
This commit is contained in:
parent
8f7e0f2131
commit
d6f31ad4b4
@ -1,5 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/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
|
# Can't do sed inplace, because the file would be busy
|
||||||
cat /var/nginx/social.conf | \
|
cat /var/nginx/social.conf | \
|
||||||
sed -r "s/%hostname%/${WEB_DOMAIN}/g;" > \
|
sed -r "s/%hostname%/${WEB_DOMAIN}/g;" > \
|
||||||
|
Loading…
Reference in New Issue
Block a user