from .settings import *

# Production settings
DEBUG = False
ALLOWED_HOSTS = ['mcn-museum.votredomaine.com', 'www.mcn-museum.votredomaine.com']

# URL de base
BASE_URL = 'https://mcn-museum.votredomaine.com'

# Redis avec socket Unix
CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.redis.RedisCache',
        'LOCATION': 'unix:///home/masa4736/.cpanel/redis/redis.sock?db=1',
        'OPTIONS': {
            'PASSWORD': 'dbf9f26e1abe133954d1971c6fc861ad',
        }
    }
}

# Celery avec Redis via socket
CELERY_BROKER_URL = 'redis+socket:///home/masa4736/.cpanel/redis/redis.sock?virtual_host=0'
CELERY_RESULT_BACKEND = 'redis+socket:///home/masa4736/.cpanel/redis/redis.sock?virtual_host=0'

# Sécurité
SECURE_SSL_REDIRECT = True
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True
SECURE_BROWSER_XSS_FILTER = True
SECURE_CONTENT_TYPE_NOSNIFF = True