Skip to content

Server Config

Module: s2auth.server.config

Config

Bases: BaseSettings

Source code in src/s2auth/server/config.py
class Config(BaseSettings):
    model_config = SettingsConfigDict(
        env_file=[".env", ".env.docker"], extra="ignore", env_nested_delimiter="__"
    )
    sqlalchemy_db_uri: SecretStr = SecretStr(
        "postgresql://postgres:postgres@localhost/s2auth"
    )
    domain_name: str = "s2connect.example.com"

config() async

Source code in src/s2auth/server/config.py
@register_provider()
async def config() -> Config:
    return Config()