# ================================================================
# Easy Asterisk — Environment Configuration
# Copy to .env and fill in your values.
# ================================================================

# ── Domain (REQUIRED for remote/FQDN access) ──────────────────
# Your FQDN pointing to this server's public IP.
# Leave empty for LAN-only mode.
DOMAIN_NAME=asterisk.example.com

# ── TURN/STUN ──────────────────────────────────────────────────
# Generate a strong password: openssl rand -base64 18
TURN_USERNAME=easyasterisk
TURN_PASSWORD=changeme
TURN_PORT=3478
# Points to coturn. For LAN-only leave empty.
TURN_SERVER=${DOMAIN_NAME}:${TURN_PORT}

# ── RTP port range ─────────────────────────────────────────────
RTP_START=10000
RTP_END=20000

# ── Web admin ──────────────────────────────────────────────────
WEB_ADMIN_PORT=8080
# Set to true if Authelia or another reverse proxy handles auth
WEB_ADMIN_AUTH_DISABLED=false

# ── Public IP (optional — auto-detected if empty) ─────────────
PUBLIC_IP=

# ── Local network CIDR (optional — auto-detected if empty) ────
LOCAL_CIDR=
