Adding VPN config to SABnzbd

This commit is contained in:
Roger Gonzalez 2024-10-12 12:11:54 -03:00
parent 561e18ebf9
commit 7f4e1191e7
Signed by: rogs
GPG Key ID: C7ECE9C6C36EC2E6
3 changed files with 7 additions and 5 deletions

View File

@ -33,7 +33,7 @@ services:
- 8081:8081 # qbittorrent - 8081:8081 # qbittorrent
#network_mode: "service:gluetun" #network_mode: "service:gluetun"
# sabnzbd is used to download from usenet # SABnzbd is used to download from usenet
sabnzbd: sabnzbd:
image: lscr.io/linuxserver/sabnzbd:latest image: lscr.io/linuxserver/sabnzbd:latest
container_name: sabnzbd container_name: sabnzbd
@ -45,8 +45,8 @@ services:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
- ${MEDIA_DIRECTORY}:/data - ${MEDIA_DIRECTORY}:/data
- ${INSTALL_DIRECTORY}/config/sabnzbd:/config - ${INSTALL_DIRECTORY}/config/sabnzbd:/config
ports: ports: # sabnzbd
- 8080:8080 - 8080:8080 # sabnzbd
restart: unless-stopped restart: unless-stopped
#network_mode: "service:gluetun" #network_mode: "service:gluetun"

View File

@ -406,7 +406,8 @@ if [ "$setup_vpn" == "y" ]; then
-e "s|vpn_password|$vpn_password|g" "$env_file" \ -e "s|vpn_password|$vpn_password|g" "$env_file" \
-e "s|#network_mode: \"service:gluetun\"|network_mode: \"service:gluetun\"|g" "$filename" \ -e "s|#network_mode: \"service:gluetun\"|network_mode: \"service:gluetun\"|g" "$filename" \
-e "s|ports: # qbittorrent|#ports: # qbittorrent|g" "$filename" \ -e "s|ports: # qbittorrent|#ports: # qbittorrent|g" "$filename" \
-e "s|- 8080:8080 # qbittorrent|#- 8080:8080 # qbittorrent|g" "$filename" \ -e "s|- 8081:8081 # qbittorrent|#- 8081:8081 # qbittorrent|g" "$filename" \
-e "s|- 8080:8080 # sabnzbd|#- 8080:8080 # sabnzbd|g" "$filename" \
-e "s|#- 8080:8080/tcp # gluetun|- 8080:8080/tcp # gluetun|g" "$filename" -e "s|#- 8080:8080/tcp # gluetun|- 8080:8080/tcp # gluetun|g" "$filename"
fi fi
#+end_src #+end_src

View File

@ -249,7 +249,8 @@ if [ "$setup_vpn" == "y" ]; then
-e "s|vpn_password|$vpn_password|g" "$env_file" \ -e "s|vpn_password|$vpn_password|g" "$env_file" \
-e "s|#network_mode: \"service:gluetun\"|network_mode: \"service:gluetun\"|g" "$filename" \ -e "s|#network_mode: \"service:gluetun\"|network_mode: \"service:gluetun\"|g" "$filename" \
-e "s|ports: # qbittorrent|#ports: # qbittorrent|g" "$filename" \ -e "s|ports: # qbittorrent|#ports: # qbittorrent|g" "$filename" \
-e "s|- 8080:8080 # qbittorrent|#- 8080:8080 # qbittorrent|g" "$filename" \ -e "s|- 8081:8081 # qbittorrent|#- 8081:8081 # qbittorrent|g" "$filename" \
-e "s|- 8080:8080 # sabnzbd|#- 8080:8080 # sabnzbd|g" "$filename" \
-e "s|#- 8080:8080/tcp # gluetun|- 8080:8080/tcp # gluetun|g" "$filename" -e "s|#- 8080:8080/tcp # gluetun|- 8080:8080/tcp # gluetun|g" "$filename"
fi fi