From 5ca91e5bc2db2a5add67ba70e38b09a378c8e02b Mon Sep 17 00:00:00 2001 From: MinjiK Date: Fri, 5 May 2023 11:07:45 +0200 Subject: [PATCH] update host for azure --- Dockerfile | 4 ++-- amadeus_demo/amadeus_demo/settings.py | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index b3b9a8f..b813e77 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,6 @@ RUN pip install -r requirements.txt ENTRYPOINT ["python", "amadeus_demo/manage.py"] -CMD ["runserver", "0.0.0.0:8080"] +CMD ["runserver", "0.0.0.0:8000"] -EXPOSE 8080 +EXPOSE 8000 diff --git a/amadeus_demo/amadeus_demo/settings.py b/amadeus_demo/amadeus_demo/settings.py index 708264f..41164c8 100644 --- a/amadeus_demo/amadeus_demo/settings.py +++ b/amadeus_demo/amadeus_demo/settings.py @@ -33,9 +33,8 @@ # SECURITY WARNING: don't run with debug turned on in production! DEBUG = os.environ.get('DEBUG_VALUE', True) - -ALLOWED_HOSTS = ['*'] - +HOST_URL = os.environ.get('HOST_URL', 'localhost') +ALLOWED_HOSTS = ['localhost', '0.0.0.0', '127.0.0.1', HOST_URL] # Application definition