summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Gonzalez <roger@rogs.me>2023-01-16 11:22:25 -0300
committerRoger Gonzalez <roger@rogs.me>2023-01-16 11:22:25 -0300
commit41ddc178c85ea1c58de365433204b78ae5b4b84a (patch)
treec39eded11ee98b159cb54528eea0aff043f9ba23
parent71907294b4c80a49b6f8f646204aac1c740d7458 (diff)
Expanded YAMS to use any VPN provider
-rw-r--r--docker-compose.example.yaml7
-rwxr-xr-xinstall.sh19
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:
- <install_location>/config/gluetun:/config
environment:
- - VPN_SERVICE_PROVIDER=mullvad
+ - VPN_SERVICE_PROVIDER=<vpn_service>
- VPN_TYPE=openvpn
- - OPENVPN_USER=<mullvad_user>
- - SERVER_COUNTRIES=<mullvad_country>
+ - OPENVPN_USER=<vpn_user>
+ - OPENVPN_PASSWORD=<vpn_password>
+ - SERVER_COUNTRIES=<vpn_country>
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>;$install_location;g" $filename
# Set VPN
if [ $setup_vpn == "y" ]; then
- sed -i -e "s;<mullvad_user>;$mullvad_user;g" $filename
- sed -i -e "s;<mullvad_country>;$mullvad_country;g" $filename
+ sed -i -e "s;<vpn_user>;$vpn_user;g" $filename
+ sed -i -e "s;<vpn_country>;$vpn_country;g" $filename
+ sed -i -e "s;<vpn_password>;$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