FixMiYouShe/src/env.py
2023-08-23 17:39:03 +08:00

10 lines
189 B
Python

import os
from dotenv import load_dotenv
load_dotenv()
DEBUG = os.getenv("DEBUG", "True").lower() == "true"
DOMAIN = os.getenv("DOMAIN", "127.0.0.1")
PORT = int(os.getenv("PORT", 8080))