Page 1 of 1
Configuring LetsEncrypt for deluge-web
Posted: Thu Sep 19, 2019 3:44 pm
by JustARandomGuy
Apologies if this has been covered already, but I haven't found anything through searches.
I have deluge and deluge-web running headless on Ubuntu 18.04, and have been using a self-signed SSL without issue. I recently bought a domain name for my server, and figured I'd switch over to a LetsEncrypt SSL instead of self-signed.
LetsEncrypt installed without issue and produced the following files:
- cert.pem
chain.pem
fullchain.pem
privkey.pem
I moved the files to the deluge SSL folder and tried each combination of privkey with cert/chain/fullchain in the web.conf to no avail. I then tried converting the pem files to cert/key files using the following commands:
Code: Select all
openssl pkey -in privkey.pem -out privkey.key
Code: Select all
openssl crl2pkcs7 -nocrl -certfile fullchain.pem | openssl pkcs7 -print_certs -out fullchain.cert
I then tried each combination of the new privkey and cert/chain/fullchain in the web.conf to no avail.
Appreciate any help getting a LetsEncrypt SSL cert working with deluge-web. Thanks!
Re: Configuring LetsEncrypt for deluge-web
Posted: Tue Oct 22, 2019 3:50 pm
by boredazfcuk
I have accomplished what your end goal is, however, I've gone about it in an entirely different manner.
I have setup nginx on my server (Debian 10) and configured it to use the LetsEncrypt certificate. There is an nginx plugin for certbot which will automate your certificate renewals.
The nginx server listens on
https://mydomainname/deluge and then then fetches
http://hostname:8112/ for any clients that connect.
I don't have to bother configuring SSL for Deluge that way, but traffic is still encrypted for when I'm accessing it remotely.
Re: Configuring LetsEncrypt for deluge-web
Posted: Fri Jul 02, 2021 4:39 pm
by THE_fat_panda
I'm just staring out so I'm not very familiar, could you please elaborate on how to do this, or point me in the correct direction?
Re: Configuring LetsEncrypt for deluge-web
Posted: Wed Jul 07, 2021 5:10 pm
by boredazfcuk
No worries. I publish all my containers on Dockerhub and the code is on GitHub:
This is my nginx container:
https://github.com/boredazfcuk/docker-nginx
This is my LetsEncrypt container:
https://github.com/boredazfcuk/docker-letsencrypt
This is my GeoIP container:
https://github.com/boredazfcuk/docker-geoipdb
This is my Private Internet Access VPN container:
https://github.com/boredazfcuk/docker-pianextgen
This is my Deluge container:
https://github.com/boredazfcuk/docker-deluge
You probably just want to look at my nginx container configuration files, or throw together a docker-compose.yaml similar to this:
https://github.com/boredazfcuk/steve to pull all the containers together into a stack that manages it all for you.
Re: Configuring LetsEncrypt for deluge-web
Posted: Thu Jul 08, 2021 3:31 am
by THE_fat_panda
Thank you! I'm currently using the proxy given the the deluge wiki, but I'll make sure to check these out as well.
Re: Configuring LetsEncrypt for deluge-web
Posted: Thu Jul 08, 2021 3:48 pm
by boredazfcuk
Yeah that's what I started out from, but my nginx container does a bunch of other things you'll probably want to look into as well...
Such as configuring stuff like LetsEncrypt for encryption and GeoIP blocking, so people form around the world can't connect to your web front end.
Re: Configuring LetsEncrypt for deluge-web
Posted: Fri Jul 09, 2021 5:27 am
by THE_fat_panda
Will do

Re: Configuring LetsEncrypt for deluge-web
Posted: Mon Oct 17, 2022 10:22 pm
by dny238dl
on Windows...
I got things working by creating certbot-update.bat like this.
Code: Select all
certbot certonly --standalone -d <domain> -n
copy /y C:\Certbot\live\<domain name>\fullchain.pem %APPDATA%\deluge\ssl\daemon.cert
copy /y C:\Certbot\live\<domain name>\privkey.pem %APPDATA%\deluge\ssl\daemon.pkey