Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update master from dev #2862

Open
wants to merge 97 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
05cea0a
Add Transmissionic Web UI & New Documentation (#2589)
apsoyka Apr 19, 2023
ea70117
Added step to build a .deb file to install and reduce image size (#2590)
pkishino Apr 19, 2023
30d070d
Check for update-port script existing instead of being executable (#2…
gapple Apr 22, 2023
2bd89d7
Fixed TWC paths (#2600)
pkishino Apr 29, 2023
3efaf14
add docker build caching to workflow (#2609)
ksurl May 9, 2023
2169498
Privoxy eth0 fixes, healthcheck comparison tweak and start.sh update …
heavygee May 11, 2023
9123cf0
Strip double quotes from umask check (#2601)
pkishino May 11, 2023
82756d6
Fix problem with enabled UFW with Random Ports (#2603)
WitchRecipe May 11, 2023
32833c4
move vpn config download to /config (#2592)
ksurl May 17, 2023
1644c98
use alpine:latest for TransmissionUIs build stage (#2573)
Entepotenz May 17, 2023
42eb2ee
Update fetch-external-configs.sh
pkishino May 19, 2023
91f6973
Update to transmission 4.0.4
pkishino Aug 28, 2023
3ac3e14
Update configure-openvpn.sh
pkishino Aug 30, 2023
9dd0e41
Switched the order of events, to remove the ipv6 before sed-ing the a…
heavygee Sep 1, 2023
fffb29d
Create separate image for transmission build from source (#2691)
ksurl Sep 2, 2023
5468a99
parallel docker builds with matrix (#2694)
ksurl Sep 2, 2023
fb7d10d
Merge branch 'master' into dev
pkishino Sep 3, 2023
553edc8
Update Dockerfile
pkishino Sep 4, 2023
75147a2
`TRANSMISSION_RPC_URL` option causes a moved permanently error when u…
Aemulation Sep 4, 2023
17bc7e1
Fix for PR #2691 (#2698)
ksurl Sep 4, 2023
36a1b4a
Fix #2694 image build (#2699)
ksurl Sep 4, 2023
59dfed2
fix transmission version check (#2700)
ksurl Sep 4, 2023
019be3e
Merge branch 'master' into dev
pkishino Sep 4, 2023
5d6174c
Comment
pkishino Sep 4, 2023
73a2818
Switch transmission builder image to combined platform builder (#2704)
ksurl Sep 4, 2023
10d3cff
switch to single platform builder (#2705)
ksurl Sep 4, 2023
47dfced
Merge branch 'master' into dev
pkishino Sep 4, 2023
461d504
Fix web proxy stopping to work (#2678)
JeeDeWee Sep 5, 2023
44ba9e6
Remove script_security (#2702)
pkishino Sep 5, 2023
8bae335
Revert "Remove script_security (#2702)" (#2708)
pkishino Sep 5, 2023
52d432d
Update configure-openvpn.sh (#2707)
IanMoroney Sep 5, 2023
e7e6b4a
Add natpmpc (#2746)
muggajoe Nov 14, 2023
bff5708
update transmission build version to 4.0.5
Dec 8, 2023
c19144a
fix: transmission version check (#2753)
ksurl Dec 8, 2023
c42d2f6
Update Dockerfile
pkishino Dec 8, 2023
dda0357
Update configure-openvpn.sh
pkishino Dec 10, 2023
5c9ef37
Change transmission-web-control to actively maintained project (#2764)
Choff3 Dec 15, 2023
f0964ba
update transmission build version to
transmission-bot Dec 18, 2023
ff1bfe3
update transmission build version to 4.0.5
transmission-bot Dec 18, 2023
dbf8adc
Update Transmission-Web-Control (#2772)
Choff3 Dec 20, 2023
198e65f
update transmission build version to
transmission-bot Dec 21, 2023
8916c02
update transmission build version to 4.0.5
transmission-bot Dec 21, 2023
5ef5dca
update transmission build version to
transmission-bot Dec 24, 2023
4bbc3e1
update transmission build version to 4.0.5
transmission-bot Dec 24, 2023
0970871
update transmission build version to
transmission-bot Dec 28, 2023
a8db6ea
update transmission build version to 4.0.5
transmission-bot Dec 28, 2023
ad7f4d7
update transmission build version to
transmission-bot Jan 10, 2024
23ddcea
update transmission build version to 4.0.5
transmission-bot Jan 10, 2024
2d3ad69
update transmission build version to
transmission-bot Jan 15, 2024
38cbb1a
update transmission build version to 4.0.5
transmission-bot Jan 15, 2024
03ce4c9
update transmission build version to
transmission-bot Jan 21, 2024
27dca8a
update transmission build version to 4.0.5
transmission-bot Jan 21, 2024
d0199e3
update transmission build version to
transmission-bot Jan 26, 2024
349e222
update transmission build version to 4.0.5
transmission-bot Jan 26, 2024
faf3305
update transmission build version to
transmission-bot Feb 15, 2024
6d39581
update transmission build version to 4.0.5
transmission-bot Feb 15, 2024
4168730
update transmission build version to
transmission-bot Feb 16, 2024
940c525
update transmission build version to 4.0.5
transmission-bot Feb 16, 2024
61f8124
update transmission build version to
transmission-bot Feb 20, 2024
3e92f1e
update transmission build version to 4.0.5
transmission-bot Feb 20, 2024
96b65ec
update transmission build version to
transmission-bot Feb 27, 2024
5b8882a
update transmission build version to 4.0.5
transmission-bot Feb 27, 2024
55bf2c3
update transmission build version to
transmission-bot Feb 29, 2024
c7b5ef3
update transmission build version to 4.0.5
transmission-bot Feb 29, 2024
b8da916
update transmission build version to
transmission-bot Mar 4, 2024
4a70fdc
update transmission build version to 4.0.5
transmission-bot Mar 4, 2024
7a7aae7
update transmission build version to
transmission-bot Mar 6, 2024
ce16804
update transmission build version to 4.0.5
transmission-bot Mar 6, 2024
54acc3a
Allow specifying privoxy's listen address (#2812)
Mossop Mar 11, 2024
fd27acc
Use a supported cipher in nordvpn configuration (#2821)
erdemkose Apr 3, 2024
e25241a
update transmission build version to
transmission-bot May 1, 2024
a7c2180
update transmission build version to 4.0.5
transmission-bot May 1, 2024
3975d45
Check IPv4 and IPv6 DNS records separately during health check (#2832)
apschultz May 6, 2024
d528e2f
update transmission build version to
transmission-bot May 15, 2024
11d0cd2
update transmission build version to 4.0.5
transmission-bot May 15, 2024
c2c27d4
update transmission build version to
transmission-bot May 18, 2024
5481b94
update transmission build version to 4.0.5
transmission-bot May 18, 2024
396ca8e
update transmission build version to
transmission-bot May 19, 2024
4a7e418
update transmission build version to 4.0.5
transmission-bot May 19, 2024
1699768
update transmission build version to
transmission-bot May 20, 2024
b3b34bb
update transmission build version to 4.0.5
transmission-bot May 21, 2024
fe86e50
update transmission build version to 4.0.6
transmission-bot May 30, 2024
ff54fcc
fix version check file path (#2846)
ksurl May 30, 2024
9a0cdfc
update transmission build version to
transmission-bot Jun 3, 2024
9f4a600
update transmission build version to 4.0.6
transmission-bot Jun 3, 2024
227f439
update transmission build version to
transmission-bot Jun 6, 2024
d199602
update transmission build version to 4.0.6
transmission-bot Jun 7, 2024
5a7bb95
transmission version: check with SHA & allow git push to trigger buil…
ilike2burnthing Jun 22, 2024
6e65f6c
update transmission build version to 4.0.6
transmission-bot Jun 22, 2024
e047f33
update image build version to
transmission-bot Jun 23, 2024
947009c
fix rss build (#2859)
ilike2burnthing Jun 26, 2024
b07ab43
Revert version files to 4.0.5 to test actions build (#2860)
ilike2burnthing Jun 27, 2024
6806a8e
update transmission build version to 4.0.6
transmission-bot Jun 27, 2024
5d8c270
update image build version to
transmission-bot Jun 27, 2024
d66aaf9
Fix Transmission builds action (#2861)
ilike2burnthing Jun 28, 2024
8a9e70f
update transmission build version to 4.0.6
transmission-bot Jun 28, 2024
f5c49a3
update image build version to 4.0.6
transmission-bot Jun 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions .github/workflows/check-transmission-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,25 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
ref: dev

- name: Check for new version of Transmission
run: |
LATEST_VERSION=$(curl -L https://api.github.com/repos/transmission/transmission/releases/latest | grep tag_name | awk '{print $2}' | sed -e 's/"//g' -e 's/,//')
CURRENT_VERSION=$(cat upstream/transmission-version.txt)
if [ "$LATEST_VERSION" != "$CURRENT_VERSION" ]; then
LATEST_SHA=$(curl -L https://api.github.com/repos/transmission/transmission/tags | tac | tac | awk '/sha/ {print $2; exit}' | sed -e 's/[",]//g')
LATEST_VERSION=$(curl -L https://api.github.com/repos/transmission/transmission/releases/latest | awk '/tag_name/ {print $2}' | sed -e 's/[",]//g')
CURRENT_SHA=$(cat upstream/transmission-sha.txt)
if [ "$LATEST_SHA" != "$CURRENT_SHA" -a -n "$LATEST_SHA" -a -n "$LATEST_VERSION" ]; then
echo "$LATEST_SHA" > upstream/transmission-sha.txt
echo "$LATEST_VERSION" > upstream/transmission-version.txt
git config --global user.email "[email protected]"
git config --global user.name "workflow runner"
git add upstream/transmission-sha.txt
git add upstream/transmission-version.txt
git config user.email "[email protected]"
git config user.name "Transmission-Bot"
git commit -m "update transmission build version to ${LATEST_VERSION}"
git push origin dev
fi
28 changes: 17 additions & 11 deletions .github/workflows/docker-image-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ on:
branches:
- master
- dev
paths-ignore:
- README.md
- docker-compose.yml
- mkdocs.yml
- .github/**
- docs/*
- images/*
- upstream/Dockerfile
- upstream/transmission-sha.txt
- upstream/transmission-version.txt
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

Expand All @@ -24,33 +34,29 @@ jobs:
context: ./proxy
- image-name: haugene/transmission-rss
context: ./plugins/rss
platform:
- linux/amd64
- linux/arm
- linux/arm64
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

# QEMU emulator to build for other platforms
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

# Buildx automates creating the multi-arch manifest build
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

# Authenticate so that we can push to Docker Hub
- name: Log in to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

# Generate image tags and labels
- name: Generate Docker metadata
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: |
${{ matrix.image-name }}
Expand All @@ -63,10 +69,10 @@ jobs:

# Finally, build and push the images
- name: Build image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: ${{ matrix.context }}
platforms: ${{ matrix.platform }}
platforms: linux/amd64,linux/arm,linux/arm64
build-args: |
REVISION=${{ github.sha }}
push: ${{ github.event_name != 'pull_request' }}
Expand Down
38 changes: 23 additions & 15 deletions .github/workflows/docker-transmission-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,17 @@ on:
branches:
- dev
paths:
- upstream/transmission-version.txt
- "upstream/transmission-version.txt"

jobs:
build-transmission:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm
- linux/arm64
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
ref: dev

# Get latest version of Transmission
- name: Get Transmission version
Expand All @@ -30,33 +26,33 @@ jobs:

# QEMU emulator to build for other platforms
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

# Buildx automates creating the multi-arch manifest build
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

# Authenticate so that we can push to Docker Hub
- name: Log in to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

# Generate image tag and labels
- name: Generate Docker metadata
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: haugene/transmission-builder
tags: type=match,pattern=(\d+.\d+.\d+),group=1,value=${{ env.TBT_VERSION }}

# Finally, build and push the image
- name: Build image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: upstream
platforms: ${{ matrix.platform }}
platforms: linux/amd64,linux/arm,linux/arm64
build-args: |
REVISION=${{ github.sha }}
TBT_VERSION=${{ env.TBT_VERSION }}
Expand All @@ -65,3 +61,15 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha, scope=${{ github.workflow }}
cache-to: type=gha, scope=${{ github.workflow}}

- name: Update build-version.txt
run: |
TBT_VERSION=${{ env.TBT_VERSION }}
echo "$TBT_VERSION" > upstream/build-version.txt
git config --global user.email "[email protected]"
git config --global user.name "workflow runner"
git add upstream/build-version.txt
git config user.email "[email protected]"
git config user.name "Transmission-Bot"
git commit -m "update image build version to ${TBT_VERSION}"
git push origin dev
2 changes: 1 addition & 1 deletion .github/workflows/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v4
Expand Down
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN apk --no-cache add curl jq \
&& mv /opt/transmission-ui/kettu-master /opt/transmission-ui/kettu \
&& echo "Install Transmission-Web-Control" \
&& mkdir /opt/transmission-ui/transmission-web-control \
&& curl -sL $(curl -s https://api.github.com/repos/ronggang/transmission-web-control/releases/latest | jq --raw-output '.tarball_url') | tar -C /opt/transmission-ui/transmission-web-control/ --strip-components=2 -xz \
&& curl -sL $(curl -s https://api.github.com/repos/transmission-web-control/transmission-web-control/releases/latest | jq --raw-output '.assets[0].browser_download_url') | tar -C /opt/transmission-ui/transmission-web-control/ --strip-components=2 -xz \
&& echo "Install Transmissionic" \
&& wget -qO- https://github.com/6c65726f79/Transmissionic/releases/download/v1.8.0/Transmissionic-webui-v1.8.0.zip | unzip -q - \
&& mv web /opt/transmission-ui/transmissionic
Expand All @@ -39,9 +39,10 @@ RUN set -ex; \
libminiupnpc-dev \
libnatpmp-dev \
libpsl-dev \
libssl-dev
libssl-dev \
natpmpc

FROM haugene/transmission-builder:4.0.4 as TransmissionBuilder
FROM haugene/transmission-builder:4.0.5 as TransmissionBuilder

FROM base

Expand All @@ -51,7 +52,7 @@ VOLUME /config
COPY --from=TransmissionUIs /opt/transmission-ui /opt/transmission-ui
COPY --from=TransmissionBuilder /var/tmp/*.deb /var/tmp/

ARG TBT_VERSION=4.0.4
ARG TBT_VERSION=4.0.5
ARG DEBIAN_FRONTEND=noninteractive

SHELL ["/bin/bash", "-o", "pipefail", "-c"]
Expand Down Expand Up @@ -113,6 +114,7 @@ ENV OPENVPN_USERNAME=**None** \
DROP_DEFAULT_ROUTE= \
WEBPROXY_ENABLED=false \
WEBPROXY_PORT=8118 \
WEBPROXY_BIND_ADDRESS= \
WEBPROXY_USERNAME= \
WEBPROXY_PASSWORD= \
LOG_TO_STDOUT=false \
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# OpenVPN and Transmission with WebUI

[![Docker Build](https://img.shields.io/github/actions/workflow/status/haugene/docker-transmission-openvpn/docker-image-builds.yml
)](https://hub.docker.com/r/haugene/transmission-openvpn/)
[![Docker Pulls](https://img.shields.io/docker/pulls/haugene/transmission-openvpn.svg)](https://hub.docker.com/r/haugene/transmission-openvpn/)

This container contains OpenVPN and Transmission with a configuration
Expand Down
71 changes: 71 additions & 0 deletions docs/provider-specific.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,74 @@ services:
max-size: 10m
image: haugene/transmission-openvpn:latest
```

### PROTONVPN

[PROTONVPN](https://protonvpn.com/support/linux-openvpn/#preparation) provides `.ovpn` configuration files. Just download the one you want to connect with and which allows P2P.

### Prerequisites:
User needs to have a paid account.

1. download your ProtonVPN ovpn file from a destination which allows P2P.
2. in the directory with your docker-compose file, create a directory: `mkdir protonvpn`
3. copy your ovpn file (node-<country of choice>.protonvpn.net.udp.ovpn) from step 1 to the protonvpn directory
4. add the environment vars below and add +pmp to your username if you want to use port forwarding.
5. add the [update-port.sh](https://github.com/haugene/vpn-configs-contrib/blob/main/openvpn/protonvpn/update-port.sh) script for ProtonVPN from vpn-configs-contrib to the protonvpn directory of step 2.

Here is a full example of `docker-compose.yml` file, assuming configuration file named `node-<country of choice>.protonvpn.net.udp`
is under local `protonvpn` subdirectory.

```yaml
version: 3.7.1
services:
transmission-openvpn:
container_name: TransmissionVPN
restart: on-failure:2
cap_add:
- NET_ADMIN
volumes:
- ./protonvpn/:/etc/openvpn/custom/
- /your/config/path/:/config # where transmission-home is stored
- /your/storage/path/:/data # where transmission will store the data
environment:
- OPENVPN_PROVIDER=custom
- OPENVPN_CONFIG=node-<country of choice>.protonvpn.net.udp
- OPENVPN_USERNAME=<username>+pmp
- OPENVPN_PASSWORD=<password>
- LOCAL_NETWORK=192.168.0.0/16
logging:
driver: json-file
options:
max-size: 10m
ports:
- 9091:9091
image: haugene/transmission-openvpn

```


After starting your container, the `peer listening port` in Transmission should be open after a minute or so.

If not you can jump in the container and run the script manually and see which error you get, or set the debug env variable: `- DEBUG=true` and look in the logging of your container for the output of the script `update-port.sh`


To check which IP address your VPN is currently connected to, run this script:
```bash
#!/bin/bash

f_container_name()
{
docker ps --format "{{.Names}}"| grep -i transmission
}

f_find_all()
{
curl --silent ipinfo.io/$ext_ip
}

var_cont_name=$(f_container_name)
ext_ip=$(docker exec $var_cont_name curl --silent "http://ipinfo.io/ip")
echo "Transmission VPN currently connected to IP address: $ext_ip"
echo "This IP address is in the following country: "
f_find_all
```
2 changes: 1 addition & 1 deletion docs/tips-tricks.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ $ sudo systemctl start transmission-openvpn.service
A working example of running this container behind a traefik reverse proxy can be found here:
[Config](https://github.com/haugene/docker-transmission-openvpn/issues/1763#issuecomment-844404143)

#### Running this container with Podman
# Running this container with Podman

The `podman run` command is almost identical to [the one mentioned in README.md](../README.md#docker-run) but with the following exception:

Expand Down
11 changes: 6 additions & 5 deletions docs/web-proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ The default listening port is 8118. Note that only ports above 1024 can be speci
and would otherwise require root permissions to run.
Remember to add a port binding for your selected (or default) port when starting the container.

| Variable | Function | Example |
| ------------------ | ----------------------- | ----------------------- |
| `WEBPROXY_ENABLED` | Enables the web proxy | `WEBPROXY_ENABLED=true` |
| `WEBPROXY_PORT` | Sets the listening port | `WEBPROXY_PORT=8118` |
| Variable | Function | Example |
| ----------------------- | ----------------------- | ------------------------------- |
| `WEBPROXY_ENABLED` | Enables the web proxy | `WEBPROXY_ENABLED=true` |
| `WEBPROXY_PORT` | Sets the listening port | `WEBPROXY_PORT=8118` |
| `WEBPROXY_BIND_ADDRESS` | Sets the listen address | `WEBPROXY_BIND_ADDRESS=0.0.0.0` |

The listening address is the one found bound to the eth0 interface.
The listening address is the one found bound to the eth0 interface unless `WEBPROXY_BIND_ADDRESS` is set.

`adr=$(ip -4 a show eth0| grep -oP "(?<=inet )([^/]+)")`
2 changes: 1 addition & 1 deletion openvpn/fetch-external-configs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ elif [[ "${VPN_CONFIG_SOURCE_TYPE}" == "github_clone" ]]; then
git -C "${config_repo}" checkout "${GITHUB_CONFIG_SOURCE_REVISION}"
else
echo "Cloning ${GITHUB_CONFIG_REPO_URL} into ${config_repo}"
config_repo_old="${config_repo}" + "_old"
config_repo_old="${config_repo}_old"
mv "${config_repo}" "${config_repo_old}"
git clone -b "${GITHUB_CONFIG_SOURCE_REVISION}" "${GITHUB_CONFIG_REPO_URL}" "${config_repo}"
fi
Expand Down
10 changes: 4 additions & 6 deletions openvpn/nordvpn/configure-openvpn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# NORDVPN_COUNTRY: code or name
# curl -s "https://api.nordvpn.com/v1/servers/countries" | jq --raw-output '.[] | [.code, .name] | @tsv'
# NORDVPN_PROTOCOL: tcp or upd, tcp if none or unknown. Many technologies are not used as only openvpn_udp and openvpn_tcp are tested.
# NORDVPN_PROTOCOL: tcp or udp, tcp if none or unknown. Many technologies are not used as only openvpn_udp and openvpn_tcp are tested.
# Will request api with openvpn_<NORDVPN_PROTOCOL>.
# curl -s "https://api.nordvpn.com/v1/technologies" | jq --raw-output '.[] | [.identifier, .name ] | @tsv' | grep openvpn
# NORDVPN_CATEGORY: default p2p. not all countries have all combination of NORDVPN_PROTOCOL(technologies) and NORDVPN_CATEGORY(groups),
Expand Down Expand Up @@ -306,10 +306,8 @@ res="$(download_hostname ${selected})"
log "OVPN: NORDVPN: selected: ${selected}, VPN_PROVIDER_HOME: ${VPN_PROVIDER_HOME}"
# fix deprecated ciphers
if [[ -f ${VPN_PROVIDER_HOME}/${selected}.ovpn ]]; then
#add data ciphers: DEPRECATED OPTION: --cipher set to 'AES-256-CBC' but missing in --data-ciphers (AES-256-GCM:AES-128-GCM).
if [[ 0 -le $(grep -c "cipher AES-256-CBC" ${VPN_PROVIDER_HOME}/${selected}.ovpn) ]] && [[ 0 -eq $(grep -c "data-ciphers AES-256-CBC" ${VPN_PROVIDER_HOME}/${selected}.ovpn) ]]; then
sed -i "/cipher AES-256-CBC/a data-ciphers AES-256-CBC" ${VPN_PROVIDER_HOME}/${selected}.ovpn
fi
# replace with a supported cipher. fixes: DEPRECATED OPTION: --cipher set to 'AES-256-CBC' but missing in --data-ciphers (AES-256-GCM:AES-128-GCM).
sed -i -e "s/cipher AES-256-CBC/cipher AES-256-GCM\ndata-ciphers AES-256-GCM/g" ${VPN_PROVIDER_HOME}/${selected}.ovpn
fi
#handle tests results.
if [[ -n ${NORDVPN_TESTS} ]]; then
Expand Down Expand Up @@ -390,4 +388,4 @@ fi

export OPENVPN_CONFIG=${selected}

cd "${0%/*}"
cd "${0%/*}"
3 changes: 2 additions & 1 deletion openvpn/ovpn/configure-openvpn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ cd /etc/openvpn/ovpn
find /etc/openvpn/ovpn -type f ! -name "*.sh" -delete

# Download and extract wanted bundle into temporary file

echo "deleting temp folder"
rm -rf /tmp/ovpnxtract/
echo "creating temp folder"
mkdir /tmp/ovpnxtract/
echo "entering temp folder"
Expand Down
2 changes: 1 addition & 1 deletion plugins/rss/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ ENV TRANSMISSION_DOWNLOAD_DIR=/data/completed \
RSS_REGEXP=

# Install build-base and transmission-rss gem
RUN apk add build-base bash && gem install transmission-rss
RUN apk add build-base bash && gem install ffi -v 1.16.3 && gem install transmission-rss

ADD . /etc/transmission-rss
Loading