Add torrent client.

This commit is contained in:
redxef 2021-08-07 19:54:15 +02:00
parent 9bc7660e65
commit acd9008b22
3 changed files with 8 additions and 0 deletions

1
configuration.env Normal file
View file

@ -0,0 +1 @@
OVPN_CONFIGURATION_FILE=/opt/config.ovpn

View file

@ -8,5 +8,7 @@ services:
volumes:
- ./config.ovpn:/opt/config.ovpn
- ./auth.txt:/opt/auth.txt
- /etc/passwd:/etc/passwd
cap_add:
- NET_ADMIN
env_file: ./configuration.env

View file

@ -6,5 +6,10 @@ create_net_dev() {
chmod 600 /dev/net/tun
}
connect_vpn() {
openvpn --config "$OVPN_CONFIGURATION_FILE" --daemon
}
create_net_dev
connect_vpn
"$@"