# ============================================================
# PX360 Production Environment Configuration
# ============================================================
# Copy this file to .env.production and fill in the values.
# NEVER commit .env.production to version control.
# This is for the production server with external PostgreSQL.
# ============================================================

# --- Django ---
DJANGO_SETTINGS_MODULE=config.settings.prod
DEBUG=False
SECRET_KEY=CHANGE-ME-generate-with-python3-c-from-django.core.management.utils-import-get_random_secret_key-print-get_random_secret_key
ALLOWED_HOSTS=your-production-domain.com
ADMIN_URL=CHANGE-ME-use-a-non-obvious-url/

# --- PostgreSQL (External Server) ---
DATABASE_URL=postgresql://px360:CHANGE-ME@your-db-host:5432/px360
DB_HOST=your-db-host
DB_PORT=5432
DB_USER=px360

# --- Celery ---
CELERY_BROKER_URL=redis://redis:6379/0
CELERY_RESULT_BACKEND=redis://redis:6379/0
CELERY_TASK_ALWAYS_EAGER=False

# --- Email ---
EMAIL_BACKEND=django.core.mail.backends.smtp.EmailBackend
EMAIL_HOST=smtp.gmail.com
EMAIL_PORT=587
EMAIL_USE_TLS=True
EMAIL_HOST_USER=
EMAIL_HOST_PASSWORD=
DEFAULT_FROM_EMAIL=noreply@px360.sa

# --- AI Configuration ---
OPENROUTER_API_KEY=
AI_MODEL=z-ai/glm-4.5-air:free
AI_TEMPERATURE=0.3
AI_MAX_TOKENS=500

# --- Notifications ---
SMS_ENABLED=False
SMS_PROVIDER=console
WHATSAPP_ENABLED=False
WHATSAPP_PROVIDER=console
EMAIL_ENABLED=True
EMAIL_PROVIDER=console

# --- Twilio ---
TWILIO_ACCOUNT_SID=
TWILIO_AUTH_TOKEN=
TWILIO_PHONE_NUMBER=
TWILIO_MESSAGING_SERVICE_SID=

# --- External API Notifications ---
EMAIL_API_ENABLED=False
EMAIL_API_URL=
EMAIL_API_KEY=
SMS_API_ENABLED=False
SMS_API_URL=
SMS_API_KEY=

# --- Mshastra SMS ---
MSHASTRA_USERNAME=
MSHASTRA_PASSWORD=
MSHASTRA_SENDER_ID=

# --- HIS API ---
HIS_API_URL=https://his.alhammadi.med.sa/SSRCE/API/FetchPatientVisitTimeStamps
HIS_API_USERNAME=
HIS_API_PASSWORD=
HIS_API_KEY=

# --- Integration APIs ---
MOH_API_URL=
MOH_API_KEY=
CHI_API_URL=
CHI_API_KEY=

# --- Social Media ---
YOUTUBE_API_KEY=
YOUTUBE_CHANNEL_ID=
FACEBOOK_PAGE_ID=
FACEBOOK_ACCESS_TOKEN=
INSTAGRAM_ACCOUNT_ID=
INSTAGRAM_ACCESS_TOKEN=
TWITTER_BEARER_TOKEN=
TWITTER_USERNAME=
LINKEDIN_ACCESS_TOKEN=
LINKEDIN_ORGANIZATION_ID=
GOOGLE_CREDENTIALS_FILE=client_secret.json
GOOGLE_TOKEN_FILE=token.json
GOOGLE_LOCATIONS=

# --- OpenRouter ---
OPENROUTER_API_KEY=
OPENROUTER_MODEL=anthropic/claude-3-haiku
ANALYSIS_BATCH_SIZE=10
ANALYSIS_ENABLED=True
