mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2026-03-17 22:36:17 +00:00
add initial implementation of auth gateway with models, routes, and session management
This commit is contained in:
19
containers/auth-gateway/auth_gateway/settings.py
Normal file
19
containers/auth-gateway/auth_gateway/settings.py
Normal file
@@ -0,0 +1,19 @@
|
||||
from pathlib import Path
|
||||
|
||||
from pydantic import Field
|
||||
from pydantic_settings import BaseSettings, SettingsConfigDict
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
model_config = SettingsConfigDict(env_prefix="AUTH_GATEWAY_", extra="ignore")
|
||||
|
||||
config_dir: Path = Field(default=Path("/caddy_json_export"))
|
||||
database_path: Path = Field(default=Path("/data/auth-gateway.sqlite3"))
|
||||
cookie_name: str = Field(default="auth_gateway_session")
|
||||
external_path: str = Field(default="/auth-gateway")
|
||||
secure_cookies: bool = Field(default=True)
|
||||
session_default_minutes: int = Field(default=720)
|
||||
oidc_state_ttl_minutes: int = Field(default=10)
|
||||
|
||||
|
||||
settings = Settings()
|
||||
Reference in New Issue
Block a user