97a9f3431a
Local Docker Build (Dev) / build-dev (push) Successful in 35s
moving to an all DB approach since radarr overwrites .nfo files
172 lines
5.8 KiB
Bash
172 lines
5.8 KiB
Bash
# ===========================================
|
|
# NFOGuard Configuration - CORRECTED VERSION
|
|
# ===========================================
|
|
# Main configuration file - safe to share for debugging
|
|
# Sensitive data (API keys, passwords) are in .env.secrets
|
|
|
|
# ===========================================
|
|
# MEDIA PATHS (REQUIRED) - FIXED
|
|
# ===========================================
|
|
# Container paths (what NFOGuard sees inside container)
|
|
MOVIE_PATHS=/media/Movies/movies,/media/Movies/movies6
|
|
TV_PATHS=/media/TV/tv,/media/TV/tv6
|
|
|
|
# Radarr paths (what Radarr sees on the host system)
|
|
RADARR_ROOT_FOLDERS=/mnt/unionfs/Media/Movies/movies,/mnt/unionfs/Media/Movies/movies6
|
|
|
|
# Sonarr paths (what Sonarr sees on the host system) - FIXED VARIABLE NAME AND PATHS
|
|
SONARR_ROOT_FOLDERS=/mnt/unionfs/Media/TV/tv,/mnt/unionfs/Media/TV/tv6
|
|
|
|
# Download detection paths (for identifying downloads vs existing files)
|
|
DOWNLOAD_PATH_INDICATORS=/downloads/,/nzbget/,/completed/,/sabnzbd/,/torrents/
|
|
|
|
# ===========================================
|
|
# SERVER CONFIGURATION
|
|
# ===========================================
|
|
# Timezone for container logging and timestamps
|
|
TZ=America/New_York
|
|
|
|
# NFOGuard Core API (webhooks, processing, database management)
|
|
CORE_API_HOST=0.0.0.0
|
|
CORE_API_PORT=8080
|
|
|
|
# NFOGuard Web Interface (dashboard, series/movie management)
|
|
WEB_API_HOST=0.0.0.0
|
|
WEB_API_PORT=8081
|
|
|
|
# External port where web interface is accessible (for dynamic port reference)
|
|
WEB_EXTERNAL_PORT=8081
|
|
|
|
# ===========================================
|
|
# DATABASE CONFIGURATION
|
|
# ===========================================
|
|
# NFOGuard Database Configuration (PostgreSQL - v2.6+)
|
|
# NOTE: For new installations, PostgreSQL is strongly recommended
|
|
# Set these values in .env.secrets for security:
|
|
# - DB_PASSWORD=your_secure_password
|
|
# - DB_USER=nfoguard (default)
|
|
|
|
# PostgreSQL Database Settings
|
|
DB_TYPE=postgresql
|
|
DB_HOST=nfoguard-db # Container name from docker-compose
|
|
DB_PORT=5432
|
|
DB_NAME=nfoguard
|
|
DB_USER=nfoguard
|
|
|
|
# Legacy SQLite Configuration (Deprecated in v2.6+)
|
|
# Only use for existing SQLite installations
|
|
# DB_PATH=/app/data/media_dates.db
|
|
|
|
# Log file directory
|
|
LOG_DIR=/app/data/logs
|
|
|
|
# ===========================================
|
|
# RADARR DATABASE CONNECTION (RECOMMENDED)
|
|
# ===========================================
|
|
# Direct database access for better performance
|
|
RADARR_DB_TYPE=postgresql
|
|
RADARR_DB_HOST=192.168.255.50
|
|
RADARR_DB_PORT=5432
|
|
RADARR_DB_NAME=radarr-main
|
|
RADARR_DB_USER=postgres
|
|
|
|
# ===========================================
|
|
# API CONNECTIONS (OPTIONAL)
|
|
# ===========================================
|
|
# API keys are stored in .env.secrets for security
|
|
RADARR_URL=http://radarr:7878
|
|
SONARR_URL=http://sonarr:8989
|
|
JELLYSEERR_URL=http://jellyseerr:5055
|
|
|
|
# ===========================================
|
|
# RELEASE DATE PROCESSING
|
|
# ===========================================
|
|
# Priority order for release date fallbacks (digital, physical, theatrical)
|
|
RELEASE_DATE_PRIORITY=digital,physical,theatrical
|
|
#RELEASE_DATE_PRIORITY=digital,theatrical,physical
|
|
ENABLE_SMART_DATE_VALIDATION=true
|
|
MAX_RELEASE_DATE_GAP_YEARS=10
|
|
|
|
# Prefer API release dates over file modification dates for manual imports
|
|
PREFER_RELEASE_DATES_OVER_FILE_DATES=true
|
|
|
|
# Disable file date fallback completely (recommended for clean imports)
|
|
ALLOW_FILE_DATE_FALLBACK=false
|
|
|
|
# TMDB country for regional release date preferences
|
|
TMDB_COUNTRY=US
|
|
|
|
# ===========================================
|
|
# NFO FILE MANAGEMENT (DEPRECATED - Phase 1 Migration)
|
|
# ===========================================
|
|
# NFO file operations have been removed in favor of database-only architecture
|
|
# These settings are preserved for backward compatibility but no longer have effect
|
|
# The PostgreSQL database is now the single source of truth for all metadata
|
|
|
|
# Create/update .nfo files (DEPRECATED - no longer used)
|
|
MANAGE_NFO=false
|
|
|
|
# Update file modification times to match import dates (DEPRECATED - no longer used)
|
|
FIX_DIR_MTIMES=false
|
|
|
|
# Add lockdata tags to prevent metadata overwrites (DEPRECATED - no longer used)
|
|
LOCK_METADATA=false
|
|
|
|
# Brand name in NFO comments (DEPRECATED - no longer used)
|
|
MANAGER_BRAND=NFOGuard
|
|
|
|
# ===========================================
|
|
# PROCESSING BEHAVIOR
|
|
# ===========================================
|
|
# Movie date update strategy
|
|
MOVIE_DATE_UPDATE_MODE=overwrite
|
|
MOVIE_PRESERVE_EXISTING=false
|
|
|
|
# When to update existing dates (always, missing_only, never)
|
|
UPDATE_MODE=always
|
|
|
|
# File modification time behavior (update, leave_alone)
|
|
MTIME_BEHAVIOR=update
|
|
|
|
# Manual scan priority: use existing NFO dates for speed vs check APIs for accuracy
|
|
# false (default) = Check external APIs first, use NFO as fallback (slower but accurate)
|
|
# true = Use NFO dates immediately without API checks (faster but may use wrong dates)
|
|
MANUAL_SCAN_PRIORITIZE_NFO=false
|
|
|
|
# ===========================================
|
|
# PERFORMANCE & BATCHING
|
|
# ===========================================
|
|
# Delay before processing batched events (seconds)
|
|
BATCH_DELAY=5.0
|
|
|
|
# Maximum concurrent series processing
|
|
MAX_CONCURRENT_SERIES=3
|
|
|
|
# Sequential processing delay for bulk downloads (seconds)
|
|
# When multiple episodes are downloaded at once, process them one by one with this delay
|
|
# Set to 0 to disable sequential processing (parallel mode)
|
|
SEQUENTIAL_DELAY=20.0
|
|
|
|
# API timeout in seconds
|
|
TIMEOUT_SECONDS=45
|
|
|
|
# ===========================================
|
|
# DEBUGGING
|
|
# ===========================================
|
|
# Enable verbose logging (true/false)
|
|
DEBUG=false
|
|
|
|
# Enable path mapping debug output (true/false)
|
|
PATH_DEBUG=false
|
|
|
|
# Suppress TVDB API warnings (true/false) - TVDB failures are common and non-critical
|
|
SUPPRESS_TVDB_WARNINGS=true
|
|
|
|
# ===========================================
|
|
# WEB INTERFACE AUTHENTICATION
|
|
# ===========================================
|
|
# Enable web interface authentication (default: false)
|
|
WEB_AUTH_ENABLED=false
|
|
|
|
# Session timeout in seconds (default: 3600 = 1 hour)
|
|
WEB_AUTH_SESSION_TIMEOUT=3600 |