Make monitoring PF API-only for Portal
This commit is contained in:
@@ -25,11 +25,7 @@ def _resolve_sqlite_url(url: str) -> str:
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
model_config = SettingsConfigDict(
|
||||
env_file=BASE_DIR / ".env",
|
||||
env_file_encoding="utf-8",
|
||||
extra="ignore",
|
||||
)
|
||||
model_config = SettingsConfigDict(extra="ignore")
|
||||
|
||||
tg_bot_token: str = ""
|
||||
web_host: str = "127.0.0.1"
|
||||
@@ -38,9 +34,6 @@ class Settings(BaseSettings):
|
||||
scrape_interval_hours: int = 4
|
||||
database_url: str = f"sqlite:///{DATA_DIR / 'monitor.db'}"
|
||||
admin_chat_id: str = ""
|
||||
# Shared PIN that unlocks destructive web actions (delete/edit). Empty = gate
|
||||
# disabled (everything allowed). See app/auth.py.
|
||||
admin_pin: str = ""
|
||||
|
||||
def model_post_init(self, __context) -> None:
|
||||
self.database_url = _resolve_sqlite_url(self.database_url)
|
||||
|
||||
Reference in New Issue
Block a user