Interbend/config.py
MrEisbear bcc089e13b Adds the /collect route for users to claim job salaries.
Introduces COLLECT_COOLDOWN config for salary collection.
2025-06-20 19:06:06 -05:00

21 lines
579 B
Python

import os
from dotenv import load_dotenv
# Find the absolute path of the root directory
basedir = os.path.abspath(os.path.dirname(__file__))
load_dotenv(os.path.join(basedir, '.env'))
class Config:
# General Config
JWT_KEY = os.getenv('JWT_KEY')
JWT_EXPIRE = int(os.getenv('JWT_EXPIRATION', 30))
# Database
DB_HOST = os.getenv('DB_HOST')
DB_USER = os.getenv('DB_USER')
DB_PASSWORD = os.getenv('DB_PASSWORD')
DB_NAME = os.getenv('DB_NAME')
# Admin
ADMIN_KEY = os.getenv('ADMIN_KEY')
COLLECT_COOLDOWN = os.getenv('COLLECT_COOLDOWN')