""" Admin Panel Configuration """ import os from dotenv import load_dotenv load_dotenv() class Config: # Flask SECRET_KEY = os.getenv('SECRET_KEY', 'admin-secret-key-change-in-production') DEBUG = os.getenv('DEBUG', 'True') == 'True' # Database SQLALCHEMY_DATABASE_URI = os.getenv( 'DATABASE_URL', 'postgresql://admin_user:admin_pass@localhost/admin_hosting_db' ) SQLALCHEMY_TRACK_MODIFICATIONS = False # JWT JWT_SECRET_KEY = os.getenv('JWT_SECRET_KEY', 'admin-jwt-secret-change-in-production') JWT_EXPIRATION_HOURS = 24 # Customer API (hosting platform API) CUSTOMER_API_URL = os.getenv('CUSTOMER_API_URL', 'http://localhost:5000') CUSTOMER_API_INTERNAL_KEY = os.getenv('CUSTOMER_API_INTERNAL_KEY', 'internal-api-key') # Customer Database (read-only access to hosting platform DB) CUSTOMER_DATABASE_URI = os.getenv( 'CUSTOMER_DATABASE_URL', 'postgresql://hosting:hosting_pass@localhost/hosting' ) # CORS CORS_ORIGINS = os.getenv('CORS_ORIGINS', 'http://localhost:5173,https://admin.argeict.net').split(',')