Sign inSign up

dumbaspl/deluge-windscribe-ephemeral-port

By dumbaspl

Updated over 2 years ago

Automatically create ephemeral ports in windscribe and update deluge config to use the new port

Image
0

5.8K

dumbaspl/deluge-windscribe-ephemeral-port repository overview

deluge-windscribe-ephemeral-port

Automatically create ephemeral ports in windscribe and update deluge config to use the new port

Important information

This project was designed to work along side containers like kabe0/deluge-windscribe in mind.
It will not help you configure windscribe to use a vpn!
It will only update the port that deluge listens on to the same port that's configured on windscribe website.

Configuration

Configuration is done using environment variables

VariableDescriptionRequiredDefault
WINDSCRIBE_USERNAMEusername you use to login at windscribe.com/loginYES
WINDSCRIBE_PASSWORDpassword you use to login at windscribe.com/loginYES
DELUGE_URLThe base URL for the deluge web UIYES
DELUGE_PASSWORDThe password for the deluge web UIYES
CRON_SCHEDULEAn extra cron schedule used to periodically validate and update the port if needed. Disabled if left emptyNO
DELUGE_HOST_IDThe internal host id to connect to in the deluge web UI. It will be printed in stdout after the first successful connection to delugeOnly if you have more then one connection configured in connection managerIf you have multiple configured in deluge web ui the app will print them out and crash. If you have only one that one will be used and you don't need to specify it explicitly
WINDSCRIBE_RETRY_DELAYhow long to wait (in milliseconds) before retrying after a windscribe error. For example a failed login.NO3600000 (1 hour)
WINDSCRIBE_EXTRA_DELAYhow long to wait (in milliseconds) after the ephemeral port expires before trying to create a new one.NO60000 (1 minute)
DELUGE_RETRY_DELAYhow long to wait (in milliseconds) before retrying after a deluge error. For example a failed login.NO300000 (5 minutes)
CACHE_DIRA directory where to store cached data like windscribe session cookiesNO/cache in the docker container and ./cache everywhere else

Running

Using docker (and docker compose in this example)

version: '3.8'
services:
  deluge-windscribe-ephemeral-port:
    image: dumbaspl/deluge-windscribe-ephemeral-port:2
    restart: unless-stopped
    volumes:
      - windscribe-cache:/cache
    environment:
      - WINDSCRIBE_USERNAME=<your windscribe username>
      - WINDSCRIBE_PASSWORD=<your windscribe password>
      - DELUGE_URL=<url of your Deluge Web UI>
      - DELUGE_PASSWORD=<password for the Deluge Web UI>

      # optional
      # - DELUGE_HOST_ID=
      # - DELUGE_RETRY_DELAY=300000
      # - WINDSCRIBE_RETRY_DELAY=3600000
      # - WINDSCRIBE_EXTRA_DELAY=60000
      # - CRON_SCHEDULE=
      # - CACHE_DIR=/cache
volumes:
  windscribe-cache:

Using nodejs

This project requires Node.js version 18 or newer
This project uses yarn to manage dependencies, make sure you have it installed first.

  1. clone this repository
  2. Install dependencies by running yarn install
  3. Create a .env file in the root of the project with the necessary configuration
WINDSCRIBE_USERNAME=<your windscribe username>
WINDSCRIBE_PASSWORD=<your windscribe password>
DELUGE_URL=<url of your Deluge Web UI>
DELUGE_PASSWORD=<password for the Deluge Web UI>

# optional
# DELUGE_HOST_ID=
# DELUGE_RETRY_DELAY=300000
# WINDSCRIBE_RETRY_DELAY=3600000
# WINDSCRIBE_EXTRA_DELAY=60000
# CRON_SCHEDULE=
# CACHE_DIR=./cache
  1. Build and start using yarn install

Tip: you can use tools like pm2 to manage nodejs applications

Tag summary

Content type

Image

Digest

sha256:b4f7ba1b4

Size

72.5 MB

Last updated

over 2 years ago

docker pull dumbaspl/deluge-windscribe-ephemeral-port