URI fixes

This commit is contained in:
jableader 2025-11-05 20:07:55 +11:00
parent 585f944390
commit c71863b7bf
2 changed files with 2 additions and 2 deletions

View file

@ -155,7 +155,7 @@ async def create_invitation(
""", """,
(household["id"], body.email, user.id, token, expires_at, "pending"), (household["id"], body.email, user.id, token, expires_at, "pending"),
) )
base = settings.frontend_dev_url or "http://localhost:8080/" base = settings.frontend_dev_url
# Ensure base ends with a slash for urljoin # Ensure base ends with a slash for urljoin
if not base.endswith("/"): if not base.endswith("/"):
base = base + "/" base = base + "/"

View file

@ -21,7 +21,7 @@ class Settings:
prod: bool = os.environ.get("DOOF_PROD", "false").lower() in {"1", "true", "yes"} prod: bool = os.environ.get("DOOF_PROD", "false").lower() in {"1", "true", "yes"}
# Frontend dev server for reverse proxy in non-prod # Frontend dev server for reverse proxy in non-prod
frontend_dev_url: str = os.environ.get("FRONTEND_DEV_URL", "http://localhost:8080/") frontend_dev_url: str = os.environ.get("FRONTEND_DEV_URL", "http://localhost:8000/")
# JWT settings # JWT settings
jwt_issuer: str = os.environ.get("DOOF_JWT_ISSUER", "doof-backend") jwt_issuer: str = os.environ.get("DOOF_JWT_ISSUER", "doof-backend")