web2-hw1/backend/app/config.py
2023-01-03 17:46:56 +03:00

12 lines
187 B
Python

from pydantic import BaseSettings
class Config(BaseSettings):
db_url: str
host: str = '127.0.0.1'
port: int = 8888
config = Config(_env_file='.env')
__all__ = ['config']