CareerBot/app/config.py
ln0422 cab5181fd3 branch1: root-path deployment variant with chat UI hidden
- BASE_PATH="" for deployment at www.ityb.me root (no /careerbot prefix)
- Root redirect route only registered when BASE is non-empty
- Add secondary /careerbot/uploads mount for backward compat with
  trunk-uploaded photo URLs (shared DB scenario)
- Hide chat FAB and chat panel on index.html (display:none)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-21 12:15:58 +08:00

17 lines
410 B
Python

import secrets
from pydantic_settings import BaseSettings
class Settings(BaseSettings):
DATABASE_URL: str = "sqlite:///./careerbot.db"
SECRET_KEY: str = secrets.token_hex(32)
ALGORITHM: str = "HS256"
ACCESS_TOKEN_EXPIRE_MINUTES: int = 480
UPLOAD_DIR: str = "./uploads"
BASE_PATH: str = ""
model_config = {"env_file": ".env", "env_file_encoding": "utf-8"}
settings = Settings()