18 lines
326 B
Python
18 lines
326 B
Python
from pydantic_settings import BaseSettings
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
log_level: str
|
|
database_url: str
|
|
wechat_webhook_url: str
|
|
wechat_webhook_key: str
|
|
openobserve_url: str
|
|
openobserve_username: str
|
|
openobserve_password: str
|
|
|
|
class Config:
|
|
env_file = ".env"
|
|
|
|
|
|
settings = Settings()
|