From 813eafcfbdb65e5a8dfb154d24140c36eec182aa Mon Sep 17 00:00:00 2001 From: kjeld Schouten-Lebbing Date: Fri, 28 Feb 2020 21:33:40 +0100 Subject: [PATCH] Add transmission --- includes/organizr-conf/custom/organizr.conf | 9 +-- includes/transmission-conf/settings.json | 69 +++++++++++++++++++++ install/transmission.sh | 6 +- 3 files changed, 77 insertions(+), 7 deletions(-) create mode 100644 includes/transmission-conf/settings.json diff --git a/includes/organizr-conf/custom/organizr.conf b/includes/organizr-conf/custom/organizr.conf index 9ba8569b..4f024104 100644 --- a/includes/organizr-conf/custom/organizr.conf +++ b/includes/organizr-conf/custom/organizr.conf @@ -27,7 +27,7 @@ location /transmission/ { } location /sonarr/ { - auth_request /auth-0; + auth_request /auth-0; add_header X-Frame-Options "SAMEORIGIN"; proxy_pass http://192.168.31.23:8989; proxy_set_header Host $host; @@ -35,7 +35,6 @@ location /sonarr/ { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } - location /radarr/ { auth_request /auth-0; add_header X-Frame-Options "SAMEORIGIN"; @@ -44,7 +43,7 @@ location /radarr/ { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } - + location /lidarr/ { auth_request /auth-0; add_header X-Frame-Options "SAMEORIGIN"; @@ -67,7 +66,6 @@ location /jackett/ { proxy_set_header X-Forwarded-Host $http_host; } - location /plex/ { auth_request /auth-4; add_header X-Frame-Options "SAMEORIGIN"; @@ -115,7 +113,6 @@ location /tautulli/ { proxy_redirect off; } - location /ombi { auth_request /auth-4; add_header X-Frame-Options "SAMEORIGIN"; @@ -143,4 +140,4 @@ location /ombi { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - } \ No newline at end of file + } diff --git a/includes/transmission-conf/settings.json b/includes/transmission-conf/settings.json new file mode 100644 index 00000000..e8c8a728 --- /dev/null +++ b/includes/transmission-conf/settings.json @@ -0,0 +1,69 @@ +{ + "alt-speed-down": 10000, + "alt-speed-enabled": true, + "alt-speed-time-begin": 420, + "alt-speed-time-day": 127, + "alt-speed-time-enabled": true, + "alt-speed-time-end": 1260, + "alt-speed-up": 5000, + "bind-address-ipv4": "0.0.0.0", + "bind-address-ipv6": "::", + "blocklist-enabled": false, + "blocklist-url": "http://www.example.com/blocklist", + "cache-size-mb": 200, + "dht-enabled": true, + "download-dir": "/mnt/downloads/complete", + "download-queue-enabled": false, + "download-queue-size": 50, + "encryption": 1, + "idle-seeding-limit": 1, + "idle-seeding-limit-enabled": true, + "incomplete-dir": "/mnt/downloads/incomplete", + "incomplete-dir-enabled": true, + "lpd-enabled": false, + "message-level": 2, + "peer-congestion-algorithm": "", + "peer-id-ttl-hours": 6, + "peer-limit-global": 1000, + "peer-limit-per-torrent": 100, + "peer-port": 51413, + "peer-port-random-high": 65535, + "peer-port-random-low": 49152, + "peer-port-random-on-start": false, + "peer-socket-tos": "default", + "pex-enabled": true, + "pidfile": "/var/run/transmission/daemon.pid", + "port-forwarding-enabled": false, + "preallocation": 0, + "prefetch-enabled": true, + "queue-stalled-enabled": true, + "queue-stalled-minutes": 1, + "ratio-limit": 0, + "ratio-limit-enabled": true, + "rename-partial-files": true, + "rpc-authentication-required": false, + "rpc-bind-address": "0.0.0.0", + "rpc-enabled": true, + "rpc-host-whitelist": "", + "rpc-host-whitelist-enabled": false, + "rpc-password": "{4274e8c504b23f3cd52c7128d4838282019b83bbUtfhD/5d", + "rpc-port": 9091, + "rpc-url": "/transmission/", + "rpc-username": "", + "rpc-whitelist": "127.0.0.1", + "rpc-whitelist-enabled": false, + "scrape-paused-torrents-enabled": true, + "script-torrent-done-enabled": false, + "script-torrent-done-filename": "", + "seed-queue-enabled": false, + "seed-queue-size": 10, + "speed-limit-down": 100, + "speed-limit-down-enabled": false, + "speed-limit-up": 100, + "speed-limit-up-enabled": false, + "start-added-torrents": true, + "trash-original-torrent-files": false, + "umask": 0, + "upload-slots-per-torrent": 14, + "utp-enabled": true +} diff --git a/install/transmission.sh b/install/transmission.sh index 9c27cc65..a3dcff74 100755 --- a/install/transmission.sh +++ b/install/transmission.sh @@ -3,11 +3,15 @@ iocage create -n "transmission" -p /tmp/pkg.json -r 11.3-RELEASE interfaces="vne rm /tmp/pkg.json iocage exec transmission mkdir -p /config iocage exec transmission mkdir -p /mnt/downloads +iocage exec transmission mkdir -p /mnt/downloads/complete +iocage exec transmission mkdir -p /mnt/downloads/incomplete iocage fstab -a transmission /mnt/tank/apps/transmission /config nullfs rw 0 0 iocage fstab -a transmission /mnt/tank/downloads /mnt/downloads nullfs rw 0 0 +iocage fstab -a transmission /mnt/tank/downloads/complete /mnt/downloads/complete nullfs rw 0 0 +iocage fstab -a transmission /mnt/tank/downloads/incomplete /mnt/downloads/incomplete nullfs rw 0 0 iocage exec transmission mkdir -p /config iocage exec transmission chown -R transmission:transmission /config iocage exec transmission sysrc "transmission_enable=YES" -iocage exec transmission sysrc "transmission_conf_dir=/confige" +iocage exec transmission sysrc "transmission_conf_dir=/config" iocage exec transmission sysrc "transmission_download_dir=/mnt/downloads/complete" iocage exec transmission service transmission start \ No newline at end of file