Configured synapse

This commit is contained in:
Mike Wilson
2023-02-27 21:09:45 -05:00
parent 45eb75773a
commit e78c943fb0
15 changed files with 274 additions and 4 deletions

View File

@@ -20,10 +20,12 @@ directory:
cat:
movies: /data/torrents/movies
movies.cross-seed: /data/torrents/movies
tv: /data/torrents/tv
tv.cross-seed: /data/torrents/tv
music: /data/torrents/music
music.cross-seed: /data/torrents/music
torrents: /data/torrents/
tracker:
digitalcore:
tag: DigitalCore
@@ -52,6 +54,8 @@ tracker:
tag: RuTracker
rarbg:
tag: RarBG
reelflix:
tag: ReelFlix
nohardlinks:
movies:
@@ -61,6 +65,13 @@ nohardlinks:
min_seeding_time: 43200
resume_torrent_after_untagging_noHL: true
exclude_tags:
movies.cross-seed:
cleanup: true
max_ratio: 4.0
max_seeding_time: 43200 # 30 days
min_seeding_time: 43200
resume_torrent_after_untagging_noHL: true
exclude_tags:
tv:
cleanup: true
max_ratio: 4.0
@@ -68,6 +79,13 @@ nohardlinks:
min_seeding_time: 43200
resume_torrent_after_untagging_noHL: true
exclude_tags:
tv.cross-seed:
cleanup: true
max_ratio: 4.0
max_seeding_time: 43200
min_seeding_time: 43200
resume_torrent_after_untagging_noHL: true
exclude_tags:
music:
cleanup: true
max_ratio: 4.0
@@ -75,6 +93,13 @@ nohardlinks:
min_seeding_time: 43200
resume_torrent_after_untagging_noHL: true
exclude_tags:
music.cross-seed:
cleanup: true
max_ratio: 4.0
max_seeding_time: 43200
min_seeding_time: 43200
resume_torrent_after_untagging_noHL: true
exclude_tags:
recyclebin:
enabled: true

View File

@@ -0,0 +1,4 @@
- name: restart qbittorrent
community.docker.docker_compose:
project_src: "{{ install_directory }}/qbittorrent"
restarted: true

View File

@@ -30,6 +30,7 @@
dest: "{{ data_dir }}/qbitmanage/config.yml"
owner: "{{ service_user.uid }}"
mode: "{{ docker_compose_file_mask }}"
notify: restart qbittorrent
become: true
- name: Create cross-seed config directory
@@ -46,6 +47,7 @@
dest: "{{ data_dir }}/cross-seed/config.js"
owner: "{{ service_user.uid }}"
mode: "{{ docker_compose_file_mask }}"
notify: restart qbittorrent
become: true
- name: Start docker containers

View File

@@ -10,6 +10,7 @@ module.exports = {
"http://prowlarr.local.{{ personal_domain }}/4/api?apikey={{ prowlarr_api_key }}", // TorrentSeeds
"http://prowlarr.local.{{ personal_domain }}/5/api?apikey={{ prowlarr_api_key }}", // AnimeTosho
"http://prowlarr.local.{{ personal_domain }}/6/api?apikey={{ prowlarr_api_key }}", // Aither
"http://prowlarr.local.{{ personal_domain }}/7/api?apikey={{ prowlarr_api_key }}", // Reelflix
],
torrentDir: "/torrents",
@@ -23,7 +24,7 @@ module.exports = {
rtorrentRpcUrl: undefined,
qbittorrentUrl: "https://qbittorrent.local.{{ personal_domain }}",
duplicateCategories: true,
notificationWebhookUrl: undefined,
notificationWebhookUrl: "ntfy://push.{{ personal_domain }}/{{ ntfy_crossseed_topic }}",
port: 2468,
rssCadence: "2w",
searchCadence: "6w",

View File

@@ -29,9 +29,11 @@ services:
container_name: qbitmanage
image: cr.hotio.dev/hotio/qbitmanage
restart: unless-stopped
depends_on:
- qbittorrent
environment:
PUID: "{{ service_user.uid }}"
PGID: "{{ service_user.uid }}"
PGID: "{{ media_gid }}"
UMASK: 002
TZ: "{{ timezone }}"
QBT_DRY_RUN: "False"

View File

@@ -6,3 +6,11 @@ prowlarr_api_key: !vault |
6236313433373065640a393262613061613739626636653162653963663236303834376366626234
65316164613935376234356466333666316531353565393034353032653136376530663634383061
6335326539333362316333353131303533353537623232343637
ntfy_crossseed_topic: !vault |
$ANSIBLE_VAULT;1.1;AES256
61393334343262366334353030356132383433333531643735316662386465636261333432623530
3435623363346365633331396163653737313330353464630a616438386338393063343863316664
34396438643564626662666138333535363365376661303462323735386166396633643530636439
6433346365653830340a383864643730313664306531613238363436346634393166373237623361
30613664643637323566323939666665323532383237353533653135343936303661