Skip to content

Commit 5a93c1d

Browse files
committed
Fix prod nginx setup
1 parent 24d7d6a commit 5a93c1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main/runserver.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ python manage.py collectstatic --noinput -l
99
python manage.py make_permissions
1010

1111
# Add server name(s) to django settings and nginx - later maybe only nginx would be enough, and ALLOWED_HOSTS could be "*"
12-
if [ "$API_FQDN"x = prddsgocdnapi.azureedge.netx ]; then
13-
sed -i 's/\$NGINX_SERVER_NAME/'$API_FQDN' api.go.ifrc.org goadmin.ifrc.org/g' /etc/nginx/sites-available/nginx.conf
12+
if [ "$API_FQDN"x = goadmin.ifrc.orgx ]; then
13+
sed -i 's/\$NGINX_SERVER_NAME/'$API_FQDN' api.go.ifrc.org/g' /etc/nginx/sites-available/nginx.conf
1414
else
1515
sed -i 's/\$NGINX_SERVER_NAME/'$API_FQDN'/g' /etc/nginx/sites-available/nginx.conf
1616
fi

0 commit comments

Comments
 (0)