add bug report action (#71)

* add bug report

* add admin section to env
This commit is contained in:
Dmitry Afanasyev
2023-12-22 04:05:15 +03:00
committed by GitHub
parent 29204f1592
commit 460123ef28
7 changed files with 71 additions and 12 deletions

View File

@@ -9,9 +9,11 @@ WORKERS_COUNT=1
RELOAD="true"
DEBUG="true"
# ==== admin =====
SUPERUSER="user"
SUPERUSER_PASSWORD="hackme"
SALT="change me"
ADMIN_CHAT_ID="123456789"
# ==== sentry ====
ENABLE_SENTRY="false"

View File

@@ -71,6 +71,7 @@ class AppSettings(SentrySettings, LoggingSettings, BaseSettings):
SUPERUSER: str | None = None
SUPERUSER_PASSWORD: SecretStr | None = None
SALT: SecretStr | None = None
ADMIN_CHAT_ID: int | None = None
# telegram settings
TELEGRAM_API_TOKEN: str = "123456789:AABBCCDDEEFFaabbccddeeff-1234567890"