From 45682dbebb01dab84b3e2dd0534a7a7d9e567e50 Mon Sep 17 00:00:00 2001 From: Linh Nguyen Date: Mon, 27 Nov 2023 18:12:18 -0500 Subject: [PATCH] Change default port of local nginx server --- .env-dist | 2 +- docker-compose.yml | 2 +- docs/development.md | 2 +- glam/middleware.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.env-dist b/.env-dist index 6899df9aa..1c0bd10b6 100644 --- a/.env-dist +++ b/.env-dist @@ -11,4 +11,4 @@ GA_TRACKING_ID= OIDC_CLIENT_ID= NGINX_SESSION_SECRET= APP_LISTEN=server:8000 -APP_BASE_URL=http://localhost:5000 +APP_BASE_URL=http://localhost:3000 diff --git a/docker-compose.yml b/docker-compose.yml index d9daad66c..f40014526 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -23,7 +23,7 @@ services: env_file: - .env ports: - - '5000:80' + - '3000:80' depends_on: - server links: diff --git a/docs/development.md b/docs/development.md index c95edfaa2..2918b0f1c 100644 --- a/docs/development.md +++ b/docs/development.md @@ -96,7 +96,7 @@ make up This will launch 2 servers: -- http://localhost:5000 is an nginx server configured to authenticate via +- http://localhost:3000 is an nginx server configured to authenticate via Mozilla's auth0 backend and will proxy GLAM. - http://localhost:8000 is the Django server that contains the API endpoints and serves up the front-end HTML and static assets. diff --git a/glam/middleware.py b/glam/middleware.py index ece350965..de5734c7c 100644 --- a/glam/middleware.py +++ b/glam/middleware.py @@ -1,7 +1,7 @@ def dev_cors_middleware(get_response): """ Adds CORS headers for local testing only to allow the frontend, which is - served on port 5000, to access the API, which is served on port 8000. + served on port 3000, to access the API, which is served on port 8000. """ def middleware(request):