Configuring LetsEncrypt for deluge-web

General support for problems installing or using Deluge
Post Reply
JustARandomGuy
New User
New User
Posts: 1
Joined: Thu Sep 19, 2019 3:23 pm

Configuring LetsEncrypt for deluge-web

Post 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!
boredazfcuk
Member
Member
Posts: 22
Joined: Sun Jun 16, 2019 10:08 pm

Re: Configuring LetsEncrypt for deluge-web

Post 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.
THE_fat_panda
New User
New User
Posts: 4
Joined: Fri Jul 02, 2021 4:35 pm

Re: Configuring LetsEncrypt for deluge-web

Post by THE_fat_panda »

boredazfcuk wrote: Tue Oct 22, 2019 3:50 pm The nginx server listens on https://mydomainname/deluge and then then fetches http://hostname:8112/ for any clients that connect.
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?
boredazfcuk
Member
Member
Posts: 22
Joined: Sun Jun 16, 2019 10:08 pm

Re: Configuring LetsEncrypt for deluge-web

Post 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.
THE_fat_panda
New User
New User
Posts: 4
Joined: Fri Jul 02, 2021 4:35 pm

Re: Configuring LetsEncrypt for deluge-web

Post 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.
boredazfcuk
Member
Member
Posts: 22
Joined: Sun Jun 16, 2019 10:08 pm

Re: Configuring LetsEncrypt for deluge-web

Post 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.
THE_fat_panda
New User
New User
Posts: 4
Joined: Fri Jul 02, 2021 4:35 pm

Re: Configuring LetsEncrypt for deluge-web

Post by THE_fat_panda »

Will do :)
dny238dl
New User
New User
Posts: 1
Joined: Mon Oct 17, 2022 9:25 pm

Re: Configuring LetsEncrypt for deluge-web

Post 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 
Post Reply