From dea3c8443007d4969af00370da15462567085b2d Mon Sep 17 00:00:00 2001 From: Nemo Date: Sun, 19 Nov 2017 03:17:55 +0530 Subject: [PATCH] Maintain transmission configuration --- docker/conf/traefik.toml | 11 ++---- docker/conf/transmission.json | 68 +++++++++++++++++++++++++++++++++++ docker/main.tf | 16 ++++----- 3 files changed, 78 insertions(+), 17 deletions(-) create mode 100644 docker/conf/transmission.json diff --git a/docker/conf/traefik.toml b/docker/conf/traefik.toml index 0569058..0256c76 100644 --- a/docker/conf/traefik.toml +++ b/docker/conf/traefik.toml @@ -1,11 +1,6 @@ -################################################################ -# Web configuration backend -################################################################ [web] address = ":1111" -################################################################ -# Docker configuration backend -################################################################ [docker] -domain = "docker.in.bb8.fun" -watch = true \ No newline at end of file +domain = "in.bb8.fun,bb8.fun" +watch = true +exposedbydefault = false \ No newline at end of file diff --git a/docker/conf/transmission.json b/docker/conf/transmission.json new file mode 100644 index 0000000..5b58c72 --- /dev/null +++ b/docker/conf/transmission.json @@ -0,0 +1,68 @@ +{ + "alt-speed-down": 50, + "alt-speed-enabled": false, + "alt-speed-time-begin": 540, + "alt-speed-time-day": 127, + "alt-speed-time-enabled": false, + "alt-speed-time-end": 1020, + "alt-speed-up": 50, + "bind-address-ipv4": "0.0.0.0", + "bind-address-ipv6": "::", + "blocklist-enabled": false, + "blocklist-url": "http://www.example.com/blocklist", + "cache-size-mb": 4, + "dht-enabled": true, + "download-dir": "/downloads/complete", + "download-queue-enabled": true, + "download-queue-size": 5, + "encryption": 1, + "idle-seeding-limit": 30, + "idle-seeding-limit-enabled": false, + "incomplete-dir": "/downloads/incomplete", + "incomplete-dir-enabled": true, + "lpd-enabled": false, + "message-level": 2, + "peer-congestion-algorithm": "", + "peer-id-ttl-hours": 6, + "peer-limit-global": 200, + "peer-limit-per-torrent": 50, + "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, + "port-forwarding-enabled": true, + "preallocation": 1, + "prefetch-enabled": true, + "queue-stalled-enabled": true, + "queue-stalled-minutes": 30, + "ratio-limit": 0.2, + "ratio-limit-enabled": true, + "rename-partial-files": true, + "rpc-authentication-required": false, + "rpc-bind-address": "0.0.0.0", + "rpc-enabled": true, + "rpc-password": "{1ddd3f1f6a71d655cde7767242a23a575b44c909n5YuRT.f", + "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": 50, + "speed-limit-up-enabled": true, + "start-added-torrents": true, + "trash-original-torrent-files": false, + "umask": 2, + "upload-slots-per-torrent": 14, + "utp-enabled": true, + "watch-dir": "/watch", + "watch-dir-enabled": true +} diff --git a/docker/main.tf b/docker/main.tf index fdb026e..92cb4a2 100644 --- a/docker/main.tf +++ b/docker/main.tf @@ -29,6 +29,11 @@ resource docker_container "transmission" { container_path = "/watch" } + upload { + content = "${file("${path.module}/conf/transmission.json")}" + file = "/config/settings.json" + } + env = [ "PGID=1003", "PUID=1000", @@ -227,15 +232,8 @@ resource "docker_container" "traefik" { } upload { - content = <