Skip to content

Commit

Permalink
Change default port of local nginx server
Browse files Browse the repository at this point in the history
  • Loading branch information
Iinh committed Nov 28, 2023
1 parent da0f935 commit 45682db
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env-dist
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ services:
env_file:
- .env
ports:
- '5000:80'
- '3000:80'
depends_on:
- server
links:
Expand Down
2 changes: 1 addition & 1 deletion docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion glam/middleware.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down

0 comments on commit 45682db

Please sign in to comment.