File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -44,4 +44,10 @@ server {
4444 }
4545}
4646
47+ server {
48+ listen 80 443 ;
49+ server_name "" ;
50+ return 444 ;
51+ }
52+
4753# This environment is CHANGE_ME_BEFORE_START.
Original file line number Diff line number Diff line change @@ -9,15 +9,11 @@ python manage.py collectstatic --noinput -l
99python 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 = goadmin.ifrc.orgx ]; then
13- sed -i ' s/\$NGINX_SERVER_NAME/' $API_FQDN ' api.go.ifrc.org/g' /etc/nginx/sites-available/nginx.conf
14- else
15- sed -i ' s/\$NGINX_SERVER_NAME/' $API_FQDN ' /g' /etc/nginx/sites-available/nginx.conf
16- fi
17- # Just a temporary test:
1812if [ " $GO_ENVIRONMENT " x = productionx ]; then
13+ sed -i ' s/\$NGINX_SERVER_NAME/' $API_FQDN ' api.go.ifrc.org/g' /etc/nginx/sites-available/nginx.conf
1914 sed -i ' s/CHANGE_ME_BEFORE_START/prod/' /etc/nginx/sites-available/nginx.conf
2015else
16+ sed -i ' s/\$NGINX_SERVER_NAME/' $API_FQDN ' /g' /etc/nginx/sites-available/nginx.conf
2117 sed -i ' s/CHANGE_ME_BEFORE_START/' $GO_ENVIRONMENT ' /' /etc/nginx/sites-available/nginx.conf
2218fi
2319
You can’t perform that action at this time.
0 commit comments