Skip to content
This repository was archived by the owner on Mar 18, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ services:
- POSTGRES_DB=${POSTGRES_DB}
- AUTHORIZED_PARTIES=${AUTHORIZED_PARTIES}
- CLERK_SECRET_KEY=${CLERK_SECRET_KEY}
- CLERK_PUBLISHABLE_KEY=${CLERK_PUBLISHABLE_KEY}
networks:
- proxy
- services
Expand Down
1 change: 1 addition & 0 deletions example.env
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ POSTGRES_HOST=
POSTGRES_PORT=
POSTGRES_DB=
CLERK_SECRET_KEY=
CLERK_PUBLISHABLE_KEY=
AUTHORIZED_PARTIES=
3 changes: 2 additions & 1 deletion service/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware

from .routers import plan_router
from .routers import config_router, plan_router

load_dotenv()
app = FastAPI()
Expand All @@ -19,6 +19,7 @@
allow_headers=["*"],
)

app.include_router(config_router.router)
app.include_router(plan_router.router)


Expand Down
14 changes: 14 additions & 0 deletions service/app/routers/config_router.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import os

from fastapi import APIRouter, HTTPException

router = APIRouter()


@router.get("/config") # pragma: no cover
async def get_config() -> dict[str, str | None]:
try:
clerk_publishable_key = os.getenv("CLERK_PUBLISHABLE_KEY")
except Exception as e:
raise HTTPException(status_code=500, detail="Failed to get config. Please report to page-admin") from e
return {"clerkPublishableKey": clerk_publishable_key}