cps-api-tx / core /config.py
Ali2206's picture
Initial CPS-API deployment with TxAgent integration
682caaf
raw
history blame contribute delete
330 Bytes
import os
from dotenv import load_dotenv
load_dotenv() # Load .env file
SECRET_KEY = os.getenv("SECRET_KEY")
if not SECRET_KEY:
raise RuntimeError("SECRET_KEY not set!")
ALGORITHM = "HS256"
ACCESS_TOKEN_EXPIRE_MINUTES = 60
MONGO_URI = os.getenv("MONGO_URI")
if not MONGO_URI:
raise RuntimeError("MONGO_URI not set!")