All checks were successful
Deploy Web Client / deploy (push) Successful in 36s
- Task key from backend (TE-1 format) - BFF config: all from env vars, no defaults for secrets - CORS: dev.team.uix.su added - STORAGE_ROOT for file storage - Build with NEXT_PUBLIC_API_URL=https://dev.team.uix.su
23 lines
730 B
Python
23 lines
730 B
Python
"""BFF configuration — all from environment variables."""
|
|
|
|
import os
|
|
|
|
# Tracker (internal)
|
|
TRACKER_URL = os.environ.get("TRACKER_URL", "http://localhost:8100")
|
|
TRACKER_WS_URL = os.environ.get("TRACKER_WS_URL", "ws://localhost:8100/ws")
|
|
TRACKER_TOKEN = os.environ["TRACKER_TOKEN"] # required
|
|
|
|
# Auth
|
|
JWT_SECRET = os.environ["JWT_SECRET"] # required
|
|
JWT_ALGORITHM = "HS256"
|
|
AUTH_USER = os.environ.get("AUTH_USER", "admin")
|
|
AUTH_PASS = os.environ["AUTH_PASS"] # required
|
|
|
|
# Server
|
|
HOST = os.environ.get("BFF_HOST", "0.0.0.0")
|
|
PORT = int(os.environ.get("BFF_PORT", "8200"))
|
|
ENV = os.environ.get("BFF_ENV", "dev")
|
|
|
|
# File storage root (for project files)
|
|
STORAGE_ROOT = os.environ.get("STORAGE_ROOT", "/var/lib/team-board/files")
|