0

Yes another nginx reverse proxy question, but deluge documentation seems unhelpful and the only relevant post I found was not solving my problem.

I have a working Deluge web UI running at https://example.org:8112.

I already created a A DNS record deluge.example.org to my_ip.

So I wanted to setup a nginx reverse proxy in order to use the subdomain with deluge.

Server OS : ArchLinux

So here what I tried:

server {
    listen 80;
    listen [::]:80;
    # Redirect all HTTP requests to HTTPS with a 301 Moved Permanently response.
    return 301 https://$host$request_uri;
}

server {
    listen 443 ssl http2;
    server_name deluge.example.org;
    ssl on;
    ssl_certificate /etc/nginx/ssl/deluge.cert.pem;
    ssl_certificate_key /etc/nginx/ssl/deluge.key.pem;

    ssl_session_cache shared:SSL:1m;
    ssl_session_timeout 1440m;

    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_prefer_server_ciphers on;

    # Using list of ciphers from "Bulletproof SSL and TLS"
    ssl_ciphers "ECDHE-ECDSA-AES128-GCM-SHA256 ECDHE-ECDSA-AES256-GCM-SHA384 ECDHE-ECDSA-AES128-SHA ECDHE-ECDSA-AES256-SHA ECDHE-ECDSA-AES128-SHA256 ECDHE-ECDSA-AES256-SHA384 ECDHE-RSA-AES128-GCM-SHA256 ECDHE-RSA-AES256-GCM-SHA384 ECDHE-RSA-AES128-SHA ECDHE-RSA-AES128-SHA256 ECDHE-RSA-AES256-SHA384 DHE-RSA-AES128-GCM-SHA256 DHE-RSA-AES256-GCM-SHA384 DHE-RSA-AES128-SHA DHE-RSA-AES256-SHA DHE-RSA-AES128-SHA256 DHE-RSA-AES256-SHA256 EDH-RSA-DES-CBC3-SHA";

    add_header X-XSS-Protection "1; mode=block";

    location / {
        proxy_pass https://example.org:8112/;
        # proxy_set_header X-Deluge-Base "/deluge/";
    }
}

Note: I made a symbolic link from /srv/deluge/.config/deluge/ssl/deluge.cert.pem to /etc/nginx/ssl/deluge.cert.pem and same think for teh key.

4
  • What are you expecting to happen exactly and what happens instead? What do log files tell? Sep 25, 2016 at 23:11
  • @TeroKilkanen I expected that when accessing deluge.example.org I would have accessed the same service as for example.org:8112. Instead of that I get The connection failed - Connexion refused. Logs files don't say anything because there is no error, the configuration is good but just doesn't do what I want.
    – noraj
    Sep 27, 2016 at 5:44
  • Are you sure your nginx is running? Sep 27, 2016 at 14:23
  • @Nero, sure, I restarted it several times and checked the status each time
    – noraj
    Sep 27, 2016 at 17:04

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.