1.0 WebUi

Suggestions and discussion of future versions
Golork
New User
New User
Posts: 5
Joined: Tue May 12, 2009 8:17 pm

Re: 1.0 WebUi

Post by Golork »

okay but how to forward the port ?
I'm a noob on routing...
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: 1.0 WebUi

Post by johnnyg »

  1. Go to http://portforward.com/
  2. Select your router
  3. Choose "default guide"
  4. Enter 8112 for the port to be forwarded
hope that helps...
kikiller
New User
New User
Posts: 3
Joined: Mon Oct 26, 2009 6:50 am

Re: 1.0 WebUi

Post by kikiller »

Hi, did anyone make it work with 1.2 webui?
A lot of things have changed, and proxypass doesn't work either...
Thanks,
Christophe.
damoxc
Top Bloke
Top Bloke
Posts: 117
Joined: Sat Jul 19, 2008 7:26 pm
Location: Hampshire, UK
Contact:

Re: 1.0 WebUi

Post by damoxc »

Make what work exactly?
kikiller
New User
New User
Posts: 3
Joined: Mon Oct 26, 2009 6:50 am

Re: 1.0 WebUi

Post by kikiller »

Hi damoxc,
Make mod_wsgi work with deluge and apache so that I can get access to deluge webui through http://myserver/deluge/.
I tried with proxypass on apache but had no success, so I guessed it could work with wsgi but didn't succeed either.
Thanks for your help.
damoxc
Top Bloke
Top Bloke
Posts: 117
Joined: Sat Jul 19, 2008 7:26 pm
Location: Hampshire, UK
Contact:

Re: 1.0 WebUi

Post by damoxc »

I don't know about the 1.1.x webui but I know for definite that the 1.2 webui won't work with mod_wsgi since it uses twisteds own webserver so you'll have to use mod_proxy for it.
Rudde
New User
New User
Posts: 5
Joined: Mon Nov 23, 2009 8:35 pm

Re: 1.0 WebUi

Post by Rudde »

I have ues WebUI in 1 day and father this I got this error: http://pastebin.ca/1685813

Nothing in Deluge is edited.
pako.wako

Re: 1.0 WebUi

Post by pako.wako »

Hello everyone. This post was useful when configuring my deluge GUI interface to work as a virtual host with Apache, but some things are a little out-dated. Here's a more up-to-date version of the files I used.

Instead of deluge_apache_config.py, I renamed the file to apache.py, I don't like long filenames :)

/data/www/torrents/apache.py

Code: Select all

#!/usr/bin/env python

#config ; EDIT THIS
CONFIG_DIR =  '/data/config/deluge' #No trailing slashes. You can change to /home/user/.config/deluge or wherever you have your deluge settings
BASE_URL = '' #the apache url /No trailing slashes. I am using a virtual host, so the base is the root
#/config

#Do not edit this:
import os

def get_wsgi_application(base_url, config_dir):

    #replace default configuration directory
    from deluge import common
    def get_config_dir(filename = ""):
        return os.path.join(config_dir, filename)
    common.get_default_config_dir = get_config_dir

    #load configuration
    from deluge.configmanager import ConfigManager
    from deluge.ui.webui import deluge_webserver
    from deluge.ui.webui import utils

    config = ConfigManager("webui06.conf")

    utils.set_config_defaults()

    #set new base url
    config['base'] = base_url
    config['disallow'] = {
        '/daemon/control':'running as an apache user',
        '/config/server':'running as an apache-user'
        }

    utils.apply_config()

    #run application
    return deluge_webserver.WsgiApplication()

application = get_wsgi_application(BASE_URL, CONFIG_DIR)
/etc/apache2/sites-available/torrents.domain

Code: Select all

<VirtualHost *>
ServerName torrents.domain
WSGIProcessGroup deluge
WSGIDaemonProcess deluge processes=1 threads=25
WSGIScriptAliasMatch ^/(.*) /data/www/torrents/apache.py/$1
</VirtualHost>
How to configure virtual hosts is beyond the scope of this post, but if you want to configure your host in a subdirectory, as the previous post did, just change BASE_URL in apache.py to that subdirectory, change WSGIScriptAliasMatch to

Code: Select all

WSGIScriptAliasMatch ^/subdirectory/(.*) /data/www/torrents/apache.py/$1
and remove the <VirtualHost> open and close tags. Then just paste the rest to /etc/apache2/httpd.conf (to all Apache gurus out there: am I missing something?)

Technical Notes
The problem I had with the previous files was that in version 1.1.9 (latest) of deluge-webui (Ubuntu) deluge.ui.webui.apache used in deluge_apache_config.py is out-dated (you can find that code at /usr/lib/pymodules/python2.6/deluge/ui/webui/apache.py). It attempts to substitute common.get_config_dir from deluge.common but that's not the name of the function anymore, it is now called get_default_config_dir. Also, the original deluge/ui/webui/apache.py always used /deluge as a subdirectory, so no matter what you tried to change BASE_URL to, it would always be /deluge.
rasa29
New User
New User
Posts: 2
Joined: Tue Nov 05, 2013 4:31 am

Re: 1.0 WebUi

Post by rasa29 »

What is Open delugew2.cmd ???
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: 1.0 WebUi

Post by Cas »

This topic is obsolete...
Locked