# =====================================================
# 🔧 Django Environment Configuration
# =====================================================

# Debug mode. This file is for local development: production gets its settings from the
# platform's environment variables (and settings/prod.py forces DEBUG off).
DEBUG=True

# Secret key used for cryptographic signing
SECRET_KEY={secret_key}

BASE_URL=http://127.0.0.1:8000
BACKEND_URL=http://127.0.0.1:8000
FRONTEND_URL=http://127.0.0.1:3000

# Comma-separated. Production: the API's domain(s) and the frontends allowed to call it.
ALLOWED_HOSTS=localhost,127.0.0.1
CORS_ALLOWED_ORIGINS=http://127.0.0.1:3000,http://localhost:3000,http://127.0.0.1:5173,http://localhost:5173
# Proxies in front of Django that append to X-Forwarded-For (production default: 1).
# NUM_PROXIES=1

# =====================================================
# 🗄️ Database Configuration
# =====================================================
# By default, SQLite is used. Uncomment and configure 
# the variables below to use PostgreSQL or another DB.
# =====================================================

# SQLite (default, development only - production refuses it):
DATABASE_ENGINE=django.db.backends.sqlite3
DATABASE_NAME=db.sqlite3

# PostgreSQL:
# DATABASE_ENGINE=django.db.backends.postgresql
# DATABASE_NAME=mydb
# DATABASE_USER=myuser
# DATABASE_PASSWORD=mypass
# DATABASE_HOST=localhost
# DATABASE_PORT=5432

# =====================================================
# 📧 Email Configuration
# =====================================================
EMAIL_HOST=
EMAIL_HOST_USER=
EMAIL_HOST_PASSWORD=
EMAIL_PORT=587
EMAIL_USE_TLS=True
DEFAULT_FROM_EMAIL=

# =====================================================
# ☁️ Azure Communication Services (Email)
# =====================================================
# Production sends go through ACS when endpoint + access_key are configured.
# In dev/tests, leave them blank to fall back to console.EmailBackend.
AZURE_COMMUNICATION_ENDPOINT=
AZURE_COMMUNICATION_ACCESS_KEY=
AZURE_COMMUNICATION_EMAIL_SENDER_NO_REPLY=
AZURE_COMMUNICATION_EMAIL_SENDER_NOTIFICATION=
AZURE_COMMUNICATION_EMAIL_SENDER_SUPPORT=
AZURE_COMMUNICATION_EMAIL_SENDER_MARKETING=
AZURE_COMMUNICATION_EMAIL_SENDER=
AZURE_COMMUNICATION_EMAIL_DEFAULT_SENDER_KEY=notification
AZURE_COMMUNICATION_EMAIL_POLLING_INTERVAL_SECONDS=2
AZURE_COMMUNICATION_EMAIL_TIMEOUT_SECONDS=60

# =====================================================
# 🔐 JWT Authentication Settings
# =====================================================
# Token lifetime in minutes
JWT_ACCESS_TTL_MINUTES=15

# =====================================================
# 🔁 Redis Configuration
# =====================================================
REDIS_HOST=localhost
REDIS_USER=
REDIS_PASSWORD=
REDIS_PORT=6379
# No Redis locally? Run Celery tasks inline instead:
# CELERY_TASK_ALWAYS_EAGER=True

# =====================================================
# 🛡️ Sentry Configuration
# =====================================================
# Sentry DSN for error tracking and performance monitoring
SENTRY_DSN=

# =====================================================
# ☁️ Cloudflare R2 (S3-compatible Storage)
# =====================================================
R2_ACCOUNT_ID=
R2_ACCESS_KEY_ID=
R2_SECRET_ACCESS_KEY=
R2_BUCKET=
R2_REGION=auto
R2_ENDPOINT=
R2_PUBLIC_BASE_URL=
R2_MEDIA_PATH=

# =====================================================
# ☁️ External Service Credentials
# =====================================================
# Azure Email Services
BEEM_API_KEY=
SELCOM_MERCHANT_ID=
CLICKPESA_CLIENT_ID=
POLAR_API_KEY=
