# 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 RADARR_DB_HOST=radarr-postgres RADARR_DB_PORT=5432 RADARR_DB_NAME=radarr RADARR_DB_USER=radarr RADARR_DB_PASSWORD=your_radarr_db_password # =========================================== # RADARR API (OPTIONAL - for fallback) # =========================================== # Only needed if you want API fallback (not recommended for performance) RADARR_URL=http://radarr:7878 RADARR_API_KEY=your_radarr_api_key # =========================================== # SONARR API (OPTIONAL) # =========================================== # Only needed for TV processing SONARR_URL=http://sonarr:8989 SONARR_API_KEY=your_sonarr_api_key # =========================================== # EXTERNAL APIs FOR DIGITAL RELEASE DATES # =========================================== # TMDB API for digital release dates (recommended) TMDB_API_KEY=your_tmdb_api_key # OMDb API for DVD/digital release dates (optional) OMDB_API_KEY=your_omdb_api_key # Jellyseerr for additional digital release data (optional) JELLYSEERR_URL=http://jellyseerr:5055 JELLYSEERR_API_KEY=your_jellyseerr_api_key # =========================================== # 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 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 # 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