first commit
This commit is contained in:
27
backend/app/core/config.py
Normal file
27
backend/app/core/config.py
Normal file
@@ -0,0 +1,27 @@
|
||||
from pydantic_settings import BaseSettings, SettingsConfigDict
|
||||
|
||||
class Settings(BaseSettings):
|
||||
model_config = SettingsConfigDict(env_file=".env", extra="ignore")
|
||||
|
||||
APP_ENV: str = "dev"
|
||||
APP_NAME: str = "mt-traffic"
|
||||
BASE_URL: str = "http://localhost:8000"
|
||||
|
||||
DATABASE_URL: str = "sqlite+aiosqlite:///./mt_traffic.db"
|
||||
DOCKER_DATABASE_URL: str = "sqlite+aiosqlite:////data/mt_traffic.db"
|
||||
|
||||
SESSION_SECRET: str = "change_me"
|
||||
CREDENTIALS_MASTER_KEY: str = "change_me_32bytes_base64_fernet"
|
||||
PASSWORD_HASH_ALG: str = "argon2"
|
||||
|
||||
COOKIE_SECURE: bool = False
|
||||
COOKIE_SAMESITE: str = "lax"
|
||||
CORS_ORIGINS: str = "http://localhost:3000"
|
||||
|
||||
DEFAULT_POLL_INTERVAL_MS: int = 1000
|
||||
MAX_WS_SUBSCRIPTIONS_PER_USER: int = 10
|
||||
|
||||
ADMIN_BOOTSTRAP_EMAIL: str = "admin@example.com"
|
||||
ADMIN_BOOTSTRAP_PASSWORD: str = "admin1234"
|
||||
|
||||
settings = Settings()
|
||||
Reference in New Issue
Block a user