mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
Авторизация починка 4
This commit is contained in:
17
backend/app/config.py
Normal file
17
backend/app/config.py
Normal file
@@ -0,0 +1,17 @@
|
||||
"""Application configuration module"""
|
||||
from pydantic_settings import BaseSettings
|
||||
from pydantic import Field
|
||||
|
||||
class Settings(BaseSettings):
|
||||
"""Application settings"""
|
||||
database_url: str = Field(..., alias="DATABASE_URL")
|
||||
bot_token: str = Field(..., alias="TELEGRAM_BOT_TOKEN")
|
||||
chat_id: str = Field(..., alias="TELEGRAM_CHAT_ID")
|
||||
|
||||
class Config:
|
||||
env_file = ".env"
|
||||
env_file_encoding = "utf-8"
|
||||
case_sensitive = True
|
||||
extra = "ignore"
|
||||
|
||||
settings = Settings()
|
Reference in New Issue
Block a user