# -------------- Paths --------------

# DebriDav's internal storage ( NOT the path where DebriDav's WebDAV server should be mounted )
# This only affects the internals of the DebriDav container, and should not need to be changed.
DEBRIDAV_ROOT_PATH=/mnt

# Where DEBRIDAV_ROOT_PATH will be mapped to on the host FS
DEBRIDAV_ROOT_HOST_FS=/mnt/remote/debridav

# Where downloads will be placed, relative to DEBRIDAV_ROOT_PATH
DEBRIDAV_DOWNLOAD_PATH=/downloads

# Where DebriDav's WebDAV server will be mounted inside the other containers ( Radarr, Sonarr etc).
# The Media Root of the arrs must be set under this directory
# Downloads will be visible to the other containers in /data/downloads with this configuration
DEBRIDAV_MOUNT_PATH_CONTAINERS=/mnt/remote/debridav

# Where DebriDavs WebDAV server will be mounted on the host FS
DEBRIDAV_MOUNT_PATH_HOST_FS=/mnt/remote/debridav

# -------------- DebriDav Web Interface --------------

# Port on the host to expose DebriDav’s web interface (internal port is always 8080)
DEBRIDAV_PORT=8888

# -------------- Debrid Providers Configuration --------------

# Comma-separated list of providers to enable. Allowed values:
# premiumize, real_debrid, easynews, torbox
DEBRIDAV_DEBRID_CLIENTS=premiumize

# Premiumize API key (get from https://www.premiumize.me/account)
PREMIUMIZE_API_KEY=your_premiumize_api_key

# Leave these blank if not using for now
REALDEBRID_API_KEY=
EASYNEWS_USERNAME=
EASYNEWS_PASSWORD=
TORBOX_API_KEY=

# -------------- Sonarr/Radarr Integration --------------

# Enable integration with Sonarr and Radarr
SONARR_INTEGRATION_ENABLED=true
RADARR_INTEGRATION_ENABLED=true

# Connection details for Sonarr (running in your stack)
SONARR_HOST=sonarr
SONARR_PORT=8989
SONARR_API_KEY=your_sonarr_api_key

# Connection details for Radarr
RADARR_HOST=radarr
RADARR_PORT=7878
RADARR_API_KEY=your_radarr_api_key

# -------------- Database Configuration --------------

# Postgres DB connection for DebriDav metadata
DEBRIDAV_DB_HOST=debridav_postgres
DEBRIDAV_DB_PORT=5432
DEBRIDAV_DB_DATABASE_NAME=debridav
DEBRIDAV_DB_USERNAME=debridav
DEBRIDAV_DB_PASSWORD=debridav

# -------------- Miscellaneous --------------

# Skip caching local files smaller than this (in MB)
DEBRIDAV_CACHE_LOCAL_DEBRID_FILES_THRESHOLD_MB=10
