Skip to content

Commit

Permalink
forgot a debug switch for serving under /api, works locally again now
Browse files Browse the repository at this point in the history
  • Loading branch information
robinpdev committed Feb 29, 2024
1 parent ca177d2 commit 8fcb01c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
start:
docker compose up -d
docker compose up -d --build

stop:
docker compose down
Expand Down
5 changes: 3 additions & 2 deletions backend/pigeonhole/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@

ALLOWED_HOSTS = os.environ.get("DJANGO_ALLOWED_HOSTS", default="127.0.0.1").split(" ")

USE_X_FORWARDED_HOST = True
FORCE_SCRIPT_NAME = "/api"
if not DEBUG:
USE_X_FORWARDED_HOST = True
FORCE_SCRIPT_NAME = "/api"

# Application definition

Expand Down

0 comments on commit 8fcb01c

Please sign in to comment.