SplatNet-Backend/config.py

14 lines
417 B
Python
Raw Normal View History

from pydantic_settings import BaseSettings, SettingsConfigDict
from cryptography.fernet import Fernet
class Settings(BaseSettings):
port: int = 5000
db_url: str
fernet_key: str
2026-02-06 23:06:27 +01:00
cookie_httponly: bool = False
frontend_url: str
model_config = SettingsConfigDict(env_file=".env", extra="ignore")
2026-02-06 23:06:27 +01:00
cookie_secure: bool = False
settings = Settings()
cipher = Fernet(settings.fernet_key.encode())