# iq-sdk Environment Variables
# Copy this to .env and fill in your secrets
# NEVER commit .env to version control!

# =============================================================================
# Global Settings
# =============================================================================

# Worker configuration
# IQ_WORKER__THREADS=4
# IQ_WORKER__AUTOSCALE=true
# IQ_WORKER__MIN_THREADS=2
# IQ_WORKER__MAX_THREADS=16

# Logging
# IQ_LOGGING__LEVEL=INFO

# =============================================================================
# Site Credentials
# =============================================================================
# For each site, set the password via environment variable.
# You can also override host, user, and env per site.

# Default site
# IQ_SITE_DEFAULT_HOST=http://localhost:3000
# IQ_SITE_DEFAULT_API_KEY=
IQ_SITE_DEFAULT_API_SECRET=

# Alternative: Use file reference for K8s/Docker secrets
# IQ_SITE_DEFAULT_API_SECRET_FILE=/run/secrets/default-password
#
# For JSON/YAML secrets files, use _API_SECRET_KEY to extract:
# IQ_SITE_DEFAULT_API_SECRET_FILE=/etc/secrets/credentials.json
# IQ_SITE_DEFAULT_API_SECRET_KEY=database.password

# -----------------------------------------------------------------------------
# Additional sites (uncomment and configure as needed)
# -----------------------------------------------------------------------------

# Production site
# IQ_SITE_PRODUCTION_HOST=http://prod.example.com:3000
# IQ_SITE_PRODUCTION_USER=prod-worker
# IQ_SITE_PRODUCTION_API_SECRET=
# IQ_SITE_PRODUCTION_API_SECRET_FILE=/run/secrets/prod-password

# Staging site
# IQ_SITE_STAGING_HOST=http://staging.example.com:3000
# IQ_SITE_STAGING_USER=stage-worker
# IQ_SITE_STAGING_API_SECRET=

# =============================================================================
# Site Activation Control
# =============================================================================
# Activate/deactivate sites via ENV (overrides config file):
#
# IQ_SITE_PRODUCTION_ACTIVE=0     # Deactivate production site
# IQ_SITE_STAGING_ACTIVE=1        # Activate staging site

# =============================================================================
# Define Sites via ENV only
# =============================================================================
# To create sites entirely via environment variables, set _ACTIVE=1:
#
# IQ_SITE_MYSITE_ACTIVE=1
# IQ_SITE_MYSITE_HOST=http://mysite:3000
# IQ_SITE_MYSITE_USER=worker
# IQ_SITE_MYSITE_API_SECRET=secret

