1. Require https
2. Add a password file (using the same one as my mythtv front-end)
This worked for Deluge 1.1x :
Code: Select all
# Reverse-proxy deluge server into main server space
ProxyRequests off
ProxyPass /deluge/ http://127.0.0.1:8112/
<Location /deluge/>
ProxyPassReverse http://127.0.0.1:8112/deluge/
Order allow,deny
Allow from all
SSLCipherSuite HIGH:MEDIUM
SSLRequireSSL
AuthName "welcome to my super high security site dude"
AuthType Basic
AuthUserFile /etc/httpd/conf.d/htpasswd
Require valid-user
</Location>
For 1.3x on mythbuntu 10.10 (maverick) I use the following code instead that adds the Proxy*Cookie directives and uses the new digest-type Apache 2.2 authentication in MythTV 0.23, 0.24 and on.
Code: Select all
# Reverse-proxy deluge server into main server space
ProxyRequests off
ProxyPass /deluge/ http://127.0.0.1:8112/
<Location /deluge/>
ProxyPassReverse http://127.0.0.1:8112/deluge/
ProxyPassReverseCookieDomain 127.0.0.1 localhost
ProxyPassReverseCookiePath / /deluge/
Order allow,deny
Allow from all
SSLCipherSuite HIGH:MEDIUM
SSLRequireSSL
AuthType Digest
AuthName "MythTV"
AuthUserFile /etc/mythtv/mythweb-digest
Require valid-user
</Location>
Code: Select all
$sudo a2enmod proxy
$sudo a2enmod proxy_http
so I changed the /etc/init.d/deluge-daemon file as such :
Code: Select all
DAEMON2_ARGS="-L warning -l /var/log/deluge/deluge-web.log -b /deluge"
-m