117 lines
4.0 KiB
Bash
117 lines
4.0 KiB
Bash
# NFOGuard Environment Configuration Template
|
|
# Copy this to .env and customize for your setup
|
|
|
|
# ===========================================
|
|
# MEDIA PATHS (REQUIRED)
|
|
# ===========================================
|
|
# Paths where your movies and TV shows are stored inside the container
|
|
# Adjust these to match YOUR directory structure
|
|
TV_PATHS=/media/TV/tv,/media/TV/tv6
|
|
MOVIE_PATHS=/media/Movies/movies,/media/Movies/movies6
|
|
|
|
# ===========================================
|
|
# DATABASE CONFIGURATION
|
|
# ===========================================
|
|
# NFOGuard SQLite database location
|
|
DB_PATH=/app/data/media_dates.db
|
|
|
|
# ===========================================
|
|
# RADARR DATABASE CONNECTION (REQUIRED)
|
|
# ===========================================
|
|
# Connection to Radarr's PostgreSQL database
|
|
# NOTE: Database password should be set in .env.secrets file
|
|
RADARR_DB_HOST=radarr-postgres
|
|
RADARR_DB_PORT=5432
|
|
RADARR_DB_NAME=radarr
|
|
RADARR_DB_USER=radarr
|
|
|
|
# ===========================================
|
|
# RADARR API (OPTIONAL - for fallback)
|
|
# ===========================================
|
|
# Only needed if you want API fallback (not recommended for performance)
|
|
# NOTE: API key should be set in .env.secrets file
|
|
RADARR_URL=http://radarr:7878
|
|
|
|
# ===========================================
|
|
# SONARR API (OPTIONAL)
|
|
# ===========================================
|
|
# Only needed for TV processing
|
|
# NOTE: API key should be set in .env.secrets file
|
|
SONARR_URL=http://sonarr:8989
|
|
|
|
# ===========================================
|
|
# EXTERNAL APIs FOR DIGITAL RELEASE DATES
|
|
# ===========================================
|
|
# NOTE: All API keys should be set in .env.secrets file
|
|
# See .env.secrets.template for required keys:
|
|
# - TMDB_API_KEY (recommended for digital release dates)
|
|
# - OMDB_API_KEY (optional for DVD/digital release dates)
|
|
# - JELLYSEERR_API_KEY (optional for additional digital release data)
|
|
|
|
# Jellyseerr URL (optional)
|
|
JELLYSEERR_URL=http://jellyseerr:5055
|
|
|
|
# ===========================================
|
|
# NFO MANAGEMENT
|
|
# ===========================================
|
|
# Whether to create/update .nfo files
|
|
MANAGE_NFO=true
|
|
|
|
# Whether to fix file modification times to match import dates
|
|
FIX_DIR_MTIMES=true
|
|
|
|
# Whether to add <lockdata> tags to prevent metadata drift
|
|
LOCK_METADATA=true
|
|
|
|
# Brand name to add to NFO files
|
|
MANAGER_BRAND=NFOGuard
|
|
|
|
# ===========================================
|
|
# PROCESSING SETTINGS
|
|
# ===========================================
|
|
# Delay before processing batched webhook events (seconds)
|
|
BATCH_DELAY=5.0
|
|
|
|
# Maximum concurrent series processing
|
|
MAX_CONCURRENT_SERIES=3
|
|
|
|
# Movie date strategy: import_then_digital or digital_then_import
|
|
MOVIE_PRIORITY=import_then_digital
|
|
|
|
# Smart fallback: prefer release dates over file dates for manual imports (true/false)
|
|
PREFER_RELEASE_DATES_OVER_FILE_DATES=true
|
|
|
|
# Allow file dates as absolute last resort (true/false)
|
|
# If false, movies with no valid import AND no release dates will be skipped entirely
|
|
ALLOW_FILE_DATE_FALLBACK=false
|
|
|
|
# Fallback priority order when no valid Radarr import exists (comma-separated)
|
|
# Options: digital, physical, theatrical
|
|
# digital = VOD/streaming release, physical = DVD/Blu-ray, theatrical = cinema release
|
|
RELEASE_DATE_PRIORITY=digital,physical,theatrical
|
|
|
|
# Smart date validation: automatically prefer theatrical over unreasonably late digital/physical dates
|
|
# Example: "The Craft (1996)" theatrical vs "The Craft (2022)" physical → chooses 1996 theatrical
|
|
ENABLE_SMART_DATE_VALIDATION=true
|
|
|
|
# Maximum reasonable gap between theatrical and digital/physical release (in years)
|
|
# If digital/physical is more than this many years after theatrical, prefer theatrical instead
|
|
MAX_RELEASE_DATE_GAP_YEARS=10
|
|
|
|
# When to query APIs: always, if_missing, never
|
|
MOVIE_POLL_MODE=always
|
|
|
|
# Update mode: backfill_only or overwrite
|
|
MOVIE_DATE_UPDATE_MODE=backfill_only
|
|
|
|
# ===========================================
|
|
# LOGGING
|
|
# ===========================================
|
|
# Enable debug logging
|
|
DEBUG=false
|
|
|
|
# ===========================================
|
|
# SERVER
|
|
# ===========================================
|
|
# Port to run the webhook server on
|
|
PORT=8080 |