ClueReleaseManager Install Instructions
Install ClueReleaseManager
cd /mnt/ virtualenv-1.3.3/virtualenv.py --no-site-packages cluerelmgr cd cluerelmgr source bin/activate easy_install ClueReleaseManager
Start up the server
bin/cluerelmgr-server -p 9191 -b /path/to/your/files --server-config=/mnt/cluemapper/etc/cluemapper/who.ini
This should be started using "nohup" or use supervisor to manage the process.
Create a who.ini file
This [http://static.repoze.org/whodocs/narr.html#middleware-configuration-via-config-file page explains how to configure the repoze.who config file.
[general]
request_classifier = repoze.who.classifiers:default_request_classifier
challenge_decider = repoze.who.classifiers:default_challenge_decider
remote_user_key = REMOTE_USER
[plugin:htpasswd]
# authentication
use = repoze.who.plugins.htpasswd:make_plugin
filename = /mnt/cluemapper/etc/cluemapper/cluemapper.passwd
check_fn = repoze.who.plugins.htpasswd:crypt_check
[plugin:basicauth]
# identification and challenge
use = repoze.who.plugins.basicauth:make_plugin
realm = pypi
[identifiers]
# plugin_name;classifier_name:.. or just plugin_name (good for any)
plugins =
basicauth
[authenticators]
# plugin_name;classifier_name.. or just plugin_name (good for any)
plugins =
htpasswd
[challengers]
# plugin_name;classifier_name:.. or just plugin_name (good for any)
plugins =
basicauth
Create Apache vhost
Create this file (on Debian/Ubuntu):
/etc/apache2/sites-available/dist.yoursite.com.conf
And put this into it:
<VirtualHost *:80> ServerName dist.yoursite.com ServerAdmin admin@yoursite.com ErrorDocument 502 /maintenance.html ErrorDocument 503 /maintenance.html ErrorDocument 404 /maintenance.html ErrorLog /mnt/cluerelmgr/logs/error_log CustomLog /mnt/cluerelmgr/logs/access_log combined RewriteEngine On RewriteRule ^(.*) http://127.0.0.1:9191$1 [L,P] </VirtualHost>
Enable the site and restart Apache
ln -s /etc/apache2/sites-available/dist.yoursite.com.conf /etc/apache2/sites-enabled/100-dist.yoursite.com.conf /etc/init.d/apache2 restart
