Configuration Files
Configarr uses two main configuration files:
config.yml
- Contains your main configurationsecrets.yml
- Stores sensitive information like API keys
Configuration Structure
We try to be mostly compatible with Recyclarr, but with some small differences. We started this fork since Recyclarr V7 and will not always support newer features. Additionally we implement new features which recyclarr does not support at all like custom formats definitions directly in config or support local folders.
Templates
Configarr supports two types of templates:
-
Recyclarr Templates: Used to define reusable configuration blocks
- Documentation: Recyclarr Templates Wiki
- Location: Place template files in the directory specified by
localConfigTemplatesPath
-
TRaSH Guide Templates: Standard templates from TRaSH Guides
- These are automatically pulled from the TRaSH Guide repository
- Can be overridden using
trashGuideUrl
in config.yml - See Trash Radarr and Trash Sonarr for more information
Custom Formats
Custom formats can be defined in two ways:
- Direct in config.yml: Define custom formats directly in your configuration file
- Separate files: Store custom formats in separate files in the
localCustomFormatsPath
directory
Example custom format definition:
# ...
customFormatDefinitions:
- trash_id: custom-de-only # Unique identifier
trash_scores:
default: -10000 # Default score for this format
trash_description: "Language: German Only"
name: "Language: Not German"
includeCustomFormatWhenRenaming: false
specifications:
- name: Not German Language
implementation: LanguageSpecification
negate: true
required: false
fields:
value: 4
# ...
Configuration Files Reference
config.yml
The main configuration file that defines your Sonarr and Radarr instances, custom formats, and template includes.
# Optional: Override default repositories
#trashGuideUrl: https://github.com/BlackDark/fork-TRASH-Guides
#recyclarrConfigUrl: https://github.com/BlackDark/fork-recyclarr-configs
# Optional: Paths for custom formats and templates
localCustomFormatsPath: /app/cfs
localConfigTemplatesPath: /app/templates
# Custom Format Definitions (optional)
customFormatDefinitions:
- trash_id: example-in-config-cf
trash_scores:
default: -10000
trash_description: "Language: German Only"
name: "Language: Not German"
includeCustomFormatWhenRenaming: false
specifications:
- name: Not German Language
implementation: LanguageSpecification
negate: true
required: false
fields:
value: 4
# Sonarr Configuration
sonarr:
instance1: # Instance name (can be any unique identifier)
base_url: http://sonarr:8989 # Sonarr instance URL
api_key: !secret SONARR_API_KEY # Reference to API key in secrets.yml
# api_key: !env SONARR_API_KEY # load from environment variable
quality_definition:
type: series # Quality definition type for Sonarr
include: # Template includes
- template: sonarr-cf
- template: sonarr-quality
- template: d1498e7d189fbe6c7110ceaabb7473e6
source: TRASH # RECYCLARR (default) or TRASH
# WEB-1080p (recyclarr template)
- template: sonarr-quality-definition-series
- template: sonarr-v4-quality-profile-web-1080p
- template: sonarr-v4-custom-formats-web-1080p
custom_formats: # Custom format assignments
- trash_ids:
- 47435ece6b99a0b477caf360e79ba0bb # x265 (HD)
assign_scores_to:
- name: WEB-1080p
score: 0
- trash_ids:
- a3d82cbef5039f8d295478d28a887159 # block HDR10+
- 2b239ed870daba8126a53bd5dc8dc1c8 # block DV HDR10+
assign_scores_to:
- name: WEB-1080p
score: -10000
- trash_ids:
- example-in-config-cf # custom format defined in config.yml
assign_scores_to:
- name: WEB-1080p
score: -5000
quality_profiles:
- name: WEB-1080p
upgrade:
min_format_score: 10000
# Radarr Configuration
radarr:
instance1: # Instance name (can be any unique identifier)
base_url: http://radarr:7878 # Radarr instance URL
api_key: !secret RADARR_API_KEY # Reference to API key in secrets.yml
quality_definition:
type: movies # Quality definition type for Radarr
include:
# Comment out any of the following includes to disable them
- template: radarr-quality-definition-movie
- template: radarr-quality-profile-hd-bluray-web
- template: radarr-custom-formats-hd-bluray-web
custom_formats: # Custom format assignments
- trash_ids:
- 9f6cbff8cfe4ebbc1bde14c7b7bec0de # IMAX Enhanced
assign_scores_to:
- name: HD Bluray + WEB
score: 0
quality_profiles:
- name: HD Bluray + WEB
upgrade:
min_format_score: 200
secrets.yml
Store sensitive information like API keys in this file. Never commit this file to version control.
SONARR_API_KEY: your_sonarr_api_key_here
RADARR_API_KEY: your_radarr_api_key_here
Usage
- Create both
config.yml
andsecrets.yml
files - Place them in your Configarr configuration directory
- For Docker installations, mount these files as volumes
- For Kubernetes deployments, create ConfigMaps/Secrets from these files
Configarr will automatically load these configurations on startup and apply them to your Sonarr/Radarr instances.