• Using the proxy

last modified January 21, 2008 by Jacqueline

First you must install Deliverance and PasteScript.

The script deliverance-proxy is included with the installation.

Run:

$ deliverance-proxy --new-layout DEST_DIR

This will create DEST_DIR and put the necessary configuration files in it. The layout will look like:

DEST_DIR/etc/deliverance_proxy.ini
DEST_DIR/static/theme.html
DEST_DIR/static/rules/rules.xml
DEST_DIR/static/rules/standardrules.xml
DEST_DIR/bin/deliverance-proxy-run
DEST_DIR/bin/deliverance-proxy-ctl
DEST_DIR/var/
DEST_DIR/log/

The ini file looks like:

[server:main]
use = egg:Paste#http
host = 0.0.0.0:80

[app:main]
use = egg:Deliverance#proxy
wrap_href = http://example.com
# These refer to the files in static/ :
theme_uri = /.deliverance/static/theme.html
rule_uri = /.deliverance/static/rules/rules.xml
mount /.deliverance/static = %(here)s/../static

[exe]
pid_file = %(here)s/../var/deliverance-proxy.pid
log_file = %(here)s/../log/deliverance-proxy.log
daemon = true
# user = username
# group = groupname

You can use "deliverance-proxy-run" to start a server (in the foreground) or "deliverance-proxy-ctl start" to start a daemon in the background.

back to the project home.