mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-19 09:54:11 +02:00
add default values to config and fix import in tv/service
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
from pydantic_settings import BaseSettings, SettingsConfigDict
|
||||
from pydantic import Field
|
||||
import secrets
|
||||
|
||||
|
||||
class AuthConfig(BaseSettings):
|
||||
# to get a signing key run:
|
||||
# openssl rand -hex 32
|
||||
model_config = SettingsConfigDict(env_prefix="AUTH_")
|
||||
token_secret: str
|
||||
token_secret: str = Field(default_factory=secrets.token_hex)
|
||||
session_lifetime: int = 60 * 60 * 24
|
||||
admin_email: list[str] = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user