diff --git a/S1/S1/settings.py b/S1/S1/settings.py index 431ea0e..511b6c7 100644 --- a/S1/S1/settings.py +++ b/S1/S1/settings.py @@ -26,7 +26,7 @@ SECRET_KEY = os.getenv("SECRET_KEY") # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True # False +DEBUG = True ALLOWED_HOSTS = ["s1.vatger.de", "s1.vatsim-germany.org"] diff --git a/config/default.conf b/config/default.conf index d003ffc..d41b4d8 100644 --- a/config/default.conf +++ b/config/default.conf @@ -10,6 +10,7 @@ server { } location / { - proxy_pass http://0.0.0.0:8016; + proxy_set_header Host $host; + proxy_pass http://127.0.0.1:8016; } } \ No newline at end of file diff --git a/init.sh b/init.sh index 724a18e..66373c1 100644 --- a/init.sh +++ b/init.sh @@ -1,4 +1,4 @@ nginx -g "daemon on;" crontab cron_schedule && crond -cd S1 && gunicorn S1.wsgi --bind 0.0.0.0:8016 \ No newline at end of file +cd S1 && gunicorn S1.wsgi --bind 127.0.0.1:8016 \ No newline at end of file