From 0600d68b09484a674bd894223b2941307b1aec17 Mon Sep 17 00:00:00 2001 From: Colin Hebert Date: Mon, 16 Jan 2023 18:57:03 +0100 Subject: [PATCH] Remove authentication for transmission --- .../configs/transmission/openvpn-post-config.sh | 9 --------- downloads.docker-compose.yml | 17 ----------------- 2 files changed, 26 deletions(-) delete mode 100755 docker/configs/transmission/openvpn-post-config.sh diff --git a/docker/configs/transmission/openvpn-post-config.sh b/docker/configs/transmission/openvpn-post-config.sh deleted file mode 100755 index 9060ed3..0000000 --- a/docker/configs/transmission/openvpn-post-config.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -# Workaround for https://github.com/haugene/docker-transmission-openvpn/pull/2480 -if [[ -f /run/secrets/rpc_creds ]]; then - export TRANSMISSION_RPC_USERNAME=$(head -1 /run/secrets/rpc_creds) - export TRANSMISSION_RPC_PASSWORD=$(tail -1 /run/secrets/rpc_creds) -fi -echo "${TRANSMISSION_RPC_USERNAME}" > /config/transmission-credentials.txt -echo "${TRANSMISSION_RPC_PASSWORD}" >> /config/transmission-credentials.txt diff --git a/downloads.docker-compose.yml b/downloads.docker-compose.yml index 92abfa8..6fcf6b6 100644 --- a/downloads.docker-compose.yml +++ b/downloads.docker-compose.yml @@ -32,7 +32,6 @@ services: OPENVPN_CONFIG: ${NASCOMPOSE_TRANSMISSION_VPNREGION?} OPENVPN_OPTS: --inactive 3600 --ping 10 --ping-exit 60 LOCAL_NETWORK: 192.168.0.0/16 - TRANSMISSION_RPC_AUTHENTICATION_REQUIRED: true cap_add: - NET_ADMIN networks: @@ -44,12 +43,7 @@ services: volumes: - transmission_config:/config/ - torrents:/data/ - configs: - - source: transmission_openvpn_post_config - target: /scripts/openvpn-post-config.sh secrets: - - source: transmission_rpc_creds - target: rpc_creds - source: transmission_vpn_creds target: openvpn_creds restart: unless-stopped @@ -132,23 +126,12 @@ volumes: type: none o: bind device: ${NASCOMPOSE_SERVICES?}/volumes/transmission/config/ - transmission_scripts: - driver_opts: - type: none - o: bind - device: ${NASCOMPOSE_SERVICES?}/volumes/transmission/scripts/ nzbget_config: driver_opts: type: none o: bind device: ${NASCOMPOSE_SERVICES?}/volumes/nzbget/config/ -configs: - transmission_openvpn_post_config: - file: ${NASCOMPOSE_SERVICES?}/configs/transmission/openvpn-post-config.sh - secrets: - transmission_rpc_creds: - file: ${NASCOMPOSE_SERVICES?}/secrets/transmission/rpc_creds transmission_vpn_creds: file: ${NASCOMPOSE_SERVICES?}/secrets/transmission/vpn_creds