From 41ddc178c85ea1c58de365433204b78ae5b4b84a Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Mon, 16 Jan 2023 11:22:25 -0300 Subject: Expanded YAMS to use any VPN provider --- docker-compose.example.yaml | 7 ++++--- install.sh | 19 +++++++++++-------- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/docker-compose.example.yaml b/docker-compose.example.yaml index cd1bc50..4ca31d9 100644 --- a/docker-compose.example.yaml +++ b/docker-compose.example.yaml @@ -109,7 +109,8 @@ services: volumes: - /config/gluetun:/config environment: - - VPN_SERVICE_PROVIDER=mullvad + - VPN_SERVICE_PROVIDER= - VPN_TYPE=openvpn - - OPENVPN_USER= - - SERVER_COUNTRIES= + - OPENVPN_USER= + - OPENVPN_PASSWORD= + - SERVER_COUNTRIES= diff --git a/install.sh b/install.sh index e905d8f..e87c763 100755 --- a/install.sh +++ b/install.sh @@ -114,16 +114,18 @@ echo echo echo echo "Time to setup the VPN." -echo "The automatic installer only works with Mullvad, but you can setup many other VPNs manually." -echo "If you want to use any other VPN, choose \"N\"" -read -p "Do you want to configure Mullvad VPN? [Y/n]: " setup_vpn +echo "You can check the supported VPN list here: https://yams.media/advanced/vpn." +read -p "Do you want to configure a VPN? [Y/n]: " setup_vpn setup_vpn=${setup_vpn:-"y"} if [ $setup_vpn == "y" ]; then - read -p "What's your Mullvad username? (without spaces): " mullvad_user + read -p "What's your VPN service? (with spaces) [mullvad]: " vpn_service + vpn_service=${vpn_service:-"mullvad"} + read -p "What's your VPN username? (without spaces): " vpn_user + read -sp "What's your VPN password? (if you are using mullvad, just enter your username again): " vpn_password echo "What country do you want to use?" - read -p "You can check the countries list here: https://mullvad.net/en/servers/ [brazil]: " mullvad_country - mullvad_country=${mullvad_country:-"brazil"} + read -p "You can check the countries list for your VPN here: https://github.com/qdm12/gluetun/wiki/$vpn_service [brazil]: " vpn_country + vpn_country=${vpn_country:-"brazil"} fi echo "Configuring the docker-compose file for the user \"$username\" on \"$install_location\"..." @@ -153,8 +155,9 @@ sed -i -e "s;;$install_location;g" $filename # Set VPN if [ $setup_vpn == "y" ]; then - sed -i -e "s;;$mullvad_user;g" $filename - sed -i -e "s;;$mullvad_country;g" $filename + sed -i -e "s;;$vpn_user;g" $filename + sed -i -e "s;;$vpn_country;g" $filename + sed -i -e "s;;$vpn_password;g" $filename sed -i -e "s;#network_mode: \"service:gluetun\";network_mode: \"service:gluetun\";g" $filename sed -i -e "s;ports: # qbittorrent;#port: # qbittorrent;g" $filename sed -i -e "s;- 8080:8080 # qbittorrent;#- 8080:8080 # qbittorrent;g" $filename -- cgit v1.2.3