From 98962caafb984368e0a573a85d0a4395d9bc2efe Mon Sep 17 00:00:00 2001 From: saani Date: Sun, 23 Nov 2025 18:26:44 +0000 Subject: [PATCH] chore: configure for local development environment - Set ALLOWED_HOSTS to accept all hosts for easier local testing - Update Docker port from 8080 to 8000 (Django default) - Adjust Gunicorn binding to match new port configuration This simplifies local development setup by using standard Django conventions and removing host restrictions. The previous specific host configuration can be restored for production deployment. --- booking_system/settings.py | 6 ++---- dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/booking_system/settings.py b/booking_system/settings.py index 4c9ea38..1403f67 100644 --- a/booking_system/settings.py +++ b/booking_system/settings.py @@ -11,10 +11,8 @@ SECRET_KEY = os.getenv('JWT_SECRET', 'django-insecure-fallback-secret-key') DEBUG = os.getenv('DEBUG', 'False').lower() == 'true' -ALLOWED_HOSTS = [ - 'http://r0g84wkoc4cwoo0gckss88ow.72.61.138.80.sslip.io', - 'localhost', -] +ALLOWED_HOSTS = ["*"] + diff --git a/dockerfile b/dockerfile index f234346..6ffeffd 100644 --- a/dockerfile +++ b/dockerfile @@ -24,7 +24,7 @@ COPY . . RUN python manage.py collectstatic --noinput # Expose port -EXPOSE 8080 +EXPOSE 8000 # Run migrations and start Gunicorn -CMD sh -c "python manage.py migrate && gunicorn booking_system.wsgi:application --bind 0.0.0.0:8080 --workers 3" \ No newline at end of file +CMD sh -c "python manage.py migrate && gunicorn booking_system.wsgi:application --bind 0.0.0.0:8000 --workers 3" \ No newline at end of file