Загрузить файлы в «app»
This commit is contained in:
14
app/config.py
Normal file
14
app/config.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from pydantic_settings import BaseSettings
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
secret_key: str = "change-me-in-production-use-env-var"
|
||||
database_url: str = "sqlite:///./robot_management.db"
|
||||
session_lifetime_hours: int = 24
|
||||
api_key: str = "demo-api-key-change-in-production"
|
||||
|
||||
class Config:
|
||||
env_file = ".env"
|
||||
|
||||
|
||||
settings = Settings()
|
||||
Reference in New Issue
Block a user