Remove authentication for transmission

This commit is contained in:
Colin Hebert
2023-01-16 18:57:03 +01:00
parent 07249eb891
commit 0600d68b09
2 changed files with 0 additions and 26 deletions

View File

@@ -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

View File

@@ -32,7 +32,6 @@ services:
OPENVPN_CONFIG: ${NASCOMPOSE_TRANSMISSION_VPNREGION?} OPENVPN_CONFIG: ${NASCOMPOSE_TRANSMISSION_VPNREGION?}
OPENVPN_OPTS: --inactive 3600 --ping 10 --ping-exit 60 OPENVPN_OPTS: --inactive 3600 --ping 10 --ping-exit 60
LOCAL_NETWORK: 192.168.0.0/16 LOCAL_NETWORK: 192.168.0.0/16
TRANSMISSION_RPC_AUTHENTICATION_REQUIRED: true
cap_add: cap_add:
- NET_ADMIN - NET_ADMIN
networks: networks:
@@ -44,12 +43,7 @@ services:
volumes: volumes:
- transmission_config:/config/ - transmission_config:/config/
- torrents:/data/ - torrents:/data/
configs:
- source: transmission_openvpn_post_config
target: /scripts/openvpn-post-config.sh
secrets: secrets:
- source: transmission_rpc_creds
target: rpc_creds
- source: transmission_vpn_creds - source: transmission_vpn_creds
target: openvpn_creds target: openvpn_creds
restart: unless-stopped restart: unless-stopped
@@ -132,23 +126,12 @@ volumes:
type: none type: none
o: bind o: bind
device: ${NASCOMPOSE_SERVICES?}/volumes/transmission/config/ device: ${NASCOMPOSE_SERVICES?}/volumes/transmission/config/
transmission_scripts:
driver_opts:
type: none
o: bind
device: ${NASCOMPOSE_SERVICES?}/volumes/transmission/scripts/
nzbget_config: nzbget_config:
driver_opts: driver_opts:
type: none type: none
o: bind o: bind
device: ${NASCOMPOSE_SERVICES?}/volumes/nzbget/config/ device: ${NASCOMPOSE_SERVICES?}/volumes/nzbget/config/
configs:
transmission_openvpn_post_config:
file: ${NASCOMPOSE_SERVICES?}/configs/transmission/openvpn-post-config.sh
secrets: secrets:
transmission_rpc_creds:
file: ${NASCOMPOSE_SERVICES?}/secrets/transmission/rpc_creds
transmission_vpn_creds: transmission_vpn_creds:
file: ${NASCOMPOSE_SERVICES?}/secrets/transmission/vpn_creds file: ${NASCOMPOSE_SERVICES?}/secrets/transmission/vpn_creds