import os
from datetime import timedelta

def get_config():
    """Get configuration from environment variables"""
    return {
        'DATABASE_URL': os.getenv('DATABASE_URL', 'postgresql://postgres:password@postgres:5432/v2_adminpanel'),
        'REDIS_URL': os.getenv('REDIS_URL', 'redis://redis:6379/1'),
        'JWT_SECRET': os.getenv('JWT_SECRET', 'dev-secret-key'),
        'JWT_ALGORITHM': 'HS256',
        'ACCESS_TOKEN_EXPIRE_MINUTES': 30,
        'REFRESH_TOKEN_EXPIRE_DAYS': 7,
        'FLASK_ENV': os.getenv('FLASK_ENV', 'production'),
        'LOG_LEVEL': os.getenv('LOG_LEVEL', 'INFO'),
    }