Some checks failed
Deploy Web Client / deploy (push) Has been cancelled
- BFF on port 8200: auth + proxy to tracker - All /api/* routes go through BFF - WebSocket proxy with JWT auth - Tracker no longer exposed to internet - Logging on all requests - Removed Next.js API routes for auth (BFF handles it)
20 lines
599 B
Python
20 lines
599 B
Python
"""BFF configuration."""
|
|
|
|
import os
|
|
|
|
# Tracker (internal, not exposed to internet)
|
|
TRACKER_URL = os.getenv("TRACKER_URL", "http://localhost:8100")
|
|
TRACKER_WS_URL = os.getenv("TRACKER_WS_URL", "ws://localhost:8100/ws")
|
|
TRACKER_TOKEN = os.getenv("TRACKER_TOKEN", "tb-tracker-dev-token")
|
|
|
|
# Auth
|
|
JWT_SECRET = os.getenv("JWT_SECRET", "tb-jwt-Kx9mP4vQ7wZn2bR5")
|
|
JWT_ALGORITHM = "HS256"
|
|
AUTH_USER = os.getenv("AUTH_USER", "admin")
|
|
AUTH_PASS = os.getenv("AUTH_PASS", "teamboard")
|
|
|
|
# Server
|
|
HOST = os.getenv("BFF_HOST", "0.0.0.0")
|
|
PORT = int(os.getenv("BFF_PORT", "8200"))
|
|
ENV = os.getenv("BFF_ENV", "dev")
|