Skip to content

Instantly share code, notes, and snippets.

@jakobjs
Created April 11, 2022 11:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakobjs/b958c72a2bfcd0c3ea626f68b0c863ac to your computer and use it in GitHub Desktop.
Save jakobjs/b958c72a2bfcd0c3ea626f68b0c863ac to your computer and use it in GitHub Desktop.
autoscan config
# <- processor ->
# Override the minimum age before a scan request is sent to the target (Default 10m):
minimum-age: 10m
# Override the delay between processed scans (Default 5s):
scan-delay: 5s
# Set anchor files for remote storage. If these are missing no scans will be sent to the target to avoid files being trashed when a mount fails
anchors:
- /mnt/unionfs/drive1.anchor
- /mnt/unionfs/drive2.anchor
# <- triggers ->
# Optionally, protect your webhooks with authentication
authentication:
username:
password:
# Port for Autoscan webhooks to listen on
port: 3030
triggers:
# bernard:
# - account: /config/sa.json # Path inside the container where your SA is located
# cron: "*/5 * * * *" # every five minutes (the "" are important)
# priority: 0
# drives:
# - id: drive_id #Friendly title
# # Rewrite gdrive to the local filesystem
# rewrite:
# - from: ^/Media/
# to: /mnt/unionfs/Media/
# # Filter with regular expressions
# include:
# - ^/mnt/unionfs/Media/
# exclude:
# - '\.srt$'
inotify:
- priority: 0
# Filter with regular expressions
include:
- ^/mnt/unionfs/
exclude:
- '\.(srt|pdf)$'
# rewrite inotify path to unified filesystem
rewrite:
- from: ^/mnt/local/Media/
to: /mnt/unionfs/Media/
# Local filesystem paths to monitor
paths:
- path: /mnt/local/Media
sonarr:
- name: sonarr # /triggers/sonarr
priority: 2
radarr:
- name: radarr # /triggers/radarr
priority: 2
# lidarr:
# - name: lidarr # /triggers/lidarr
# priority: 1
# <- targets ->
targets:
plex:
- url: https://plex.domain.tld # plex
token: xx
rewrite:
- from: /mnt/unionfs/Media/
to: /data/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment