SplatNet-Backend/config.py

20 lines
530 B
Python
Raw Normal View History

from pydantic_settings import BaseSettings, SettingsConfigDict
from cryptography.fernet import Fernet
class Settings(BaseSettings):
port: int = 5000
2026-02-22 19:48:25 +01:00
judd_port: int = 4000
db_url: str
fernet_key: str
2026-02-20 04:44:33 +01:00
cookie_httponly: bool = True
2026-02-06 23:06:27 +01:00
frontend_url: str
2026-02-19 06:08:41 +01:00
boss_url: str
boss_aes_key: str
boss_hmac_key: str
model_config = SettingsConfigDict(env_file=".env", extra="ignore")
2026-02-20 04:44:33 +01:00
cookie_secure: bool = True
webhook_url: str
settings = Settings()
cipher = Fernet(settings.fernet_key.encode())