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](https://github.com/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.
**I strongly advise against using a "restart on error" policy since windscribe will temporary block your ip address after a few failed login attempts.**
# Running
## Using docker (and docker compose in this example)
```yml
version: '3'
services:
deluge-windscribe-ephemeral-port:
image: dumbaspl/deluge-windscribe-ephemeral-port
restart: unless-stopped
environment:
- WINDSCRIBE_USERNAME=<yourwindscribeusername>
- WINDSCRIBE_PASSWORD=<yourwindscribepassword>
- DELUGE_URL=<urlofyourDelugeWebUI>
- DELUGE_PASSWORD=<passwordfortheDelugeWebUI>
```
## Using nodejs
Tested on node 16 but should work on node 14 as well.
This project uses [yarn](https://classic.yarnpkg.com/) to manage dependencies, make sure you have it installed first.
1. Install dependencies by running `yarn`
2. Create a `.env` file with the necessary configuration