mirror of
https://github.com/MarkusMcNugen/docker-qBittorrentvpn
synced 2024-12-24 18:11:40 +00:00
Update README.md
This commit is contained in:
parent
8a3a0b30e9
commit
a800a8b929
22
README.md
22
README.md
@ -2,7 +2,7 @@ Private Internet Access OpenVPN - Transmission
|
||||
===
|
||||
This Docker container lets you run Transmission with WebUI while connecting to PIA VPN. It updates Transmission hourly with assigned open port from PIA. Please read the instructions below.
|
||||
|
||||
# Run container from Docker registry
|
||||
## Run container from Docker registry
|
||||
The container is available from the Docker registry and this is the simplest way to get it. To run the container use this command:
|
||||
|
||||
```
|
||||
@ -30,21 +30,19 @@ As you can see, the container expects a data volume to be mounted. It is used fo
|
||||
|
||||
The only mandatory configuration is to set two environment variables for your PIA username and password. You must set the environment variables `PIA_USERNAME` and `PIA_PASSWORD` to your login credentials. The container will connect to the Private Internet Access VPN servers in Netherlands by default.
|
||||
|
||||
NB: Instructions on how to use your own Transmission settings, and how to connect to the WebUI, is further down in the README.
|
||||
|
||||
## Required environment options
|
||||
### Required environment options
|
||||
| Variable | Function | Example |
|
||||
|----------|----------|-------|
|
||||
|`PIA_USERNAME`|Your login username for PIA|`PIA_USERNAME=asdf`|
|
||||
|`PIA_PASSWORD`|Your login password for PIA|`PIA_PASSWORD=asdf`|
|
||||
|
||||
## Network configuration options
|
||||
### Network configuration options
|
||||
| Variable | Function | Example |
|
||||
|----------|----------|-------|
|
||||
|`OPEN_VPN_CONFIG` | Sets the PIA endpoint to connect to. | `OPEN_VPN_CONFIG=UK Southampton`|
|
||||
|`RESOLV_OVERRIDE` | The value of this variable will be written to `/etc/resolv.conf`. | `RESOLV_OVERRIDE=nameserver 8.8.8.8\nnameserver 8.8.4.4\n`|
|
||||
|
||||
## Transmission configuration options
|
||||
### Transmission configuration options
|
||||
|
||||
You may override transmission options by setting the appropriate environment variable.
|
||||
|
||||
@ -59,7 +57,9 @@ The environment variables are the same name as used in the transmission settings
|
||||
|
||||
As you can see the variables are prefixed with `TRANSMISSION_`, the variable is capitalized, and `-` is converted to `_`.
|
||||
|
||||
# Building the container yourself
|
||||
PS: `TRANSMISSION_BIND_ADDRESS_IPV4` will be overridden to the IP assigned to tunnel interface by PIA. This is to prevent leaking of the host IP.
|
||||
|
||||
## Building the container yourself
|
||||
To build this container, clone the repository and cd into it.
|
||||
|
||||
### Build it:
|
||||
@ -79,7 +79,7 @@ $ docker run --privileged -d \
|
||||
|
||||
As described in the "Run container from Docker registry" section, this will start a container with default settings. This means that you should have the folders "completed, incomplete and watch" in /your/storage/path, and pia-credentials.txt in /your/config/path.
|
||||
|
||||
### Access the WebUI
|
||||
## Access the WebUI
|
||||
But what's going on? My http://my-host:9091 isn't responding?
|
||||
This is because the VPN is active, and since docker is running in a different ip range than your client the response to your request will be treated as "non-local" traffic and therefore be routed out through the VPN interface.
|
||||
|
||||
@ -108,7 +108,7 @@ http {
|
||||
Your Transmission WebUI should now be avaliable at "your.host.ip.addr:8080/transmission/web/".
|
||||
Change the port in the docker run command if 8080 is not suitable for you.
|
||||
|
||||
### What if I want to run the container interactively.
|
||||
## What if I want to run the container interactively.
|
||||
If you want do have access inside the container while running you have two choices. To have a look inside an already running container, use docker exec to get a terminal inside the container.
|
||||
|
||||
```
|
||||
@ -124,3 +124,7 @@ $ docker run --privileged -it transmission-openvpn bash
|
||||
```
|
||||
|
||||
From there you can start the service yourself, or do whatever (probably developer-related) you came to do.
|
||||
|
||||
## Controlling Transmission remotely
|
||||
The container exposes /config as a volume. This is the directory where the supplied transmission and PIA credentials will be stored. If you have transmission authentication enabled and want scripts in another container to access and control the transmission-daemon, this can be a handy way to access the credentials.
|
||||
For example, another container may pause or restrict transmission speeds while the server is streaming video.
|
||||
|
Loading…
Reference in New Issue
Block a user