7adc7c00ab
Enable managed remote browser custom pages with login autofill and add website sync workflows so external admin surfaces can be handled inside SmartUp. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
23 lines
689 B
Python
23 lines
689 B
Python
from pydantic_settings import BaseSettings
|
|
from functools import lru_cache
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
admin_email: str = "admin@smartup.local"
|
|
admin_password: str = "changeme"
|
|
jwt_secret: str = "change-me-in-production"
|
|
jwt_expire_hours: int = 24
|
|
database_url: str = "sqlite:////app/data/app.db"
|
|
tz: str = "Asia/Shanghai"
|
|
# consecutive failures before upstream goes unhealthy
|
|
unhealthy_threshold: int = 3
|
|
browser_profiles_dir: str = "/app/data/browser-profiles"
|
|
browser_headless: bool = True
|
|
|
|
model_config = {"env_file": ".env", "case_sensitive": False, "extra": "ignore"}
|
|
|
|
|
|
@lru_cache
|
|
def get_settings() -> Settings:
|
|
return Settings()
|