Add DB Mixin classes and use them
[mediagoblin.git] / paste.ini
... / ...
CommitLineData
1# If you want to make changes to this file, first copy it to
2# paste_local.ini, then make the changes there.
3
4[DEFAULT]
5# Set to true to enable web-based debugging messages and etc.
6debug = false
7
8[pipeline:main]
9pipeline = errors routing
10
11[composite:routing]
12use = egg:Paste#urlmap
13/ = mediagoblin
14/mgoblin_media/ = publicstore_serve
15/mgoblin_static/ = mediagoblin_static
16
17[app:mediagoblin]
18use = egg:mediagoblin#app
19filter-with = beaker
20config = %(here)s/mediagoblin_local.ini %(here)s/mediagoblin.ini
21
22[app:publicstore_serve]
23use = egg:Paste#static
24document_root = %(here)s/user_dev/media/public/
25cache_max_age = 604800
26
27[app:mediagoblin_static]
28use = egg:Paste#static
29document_root = %(here)s/mediagoblin/static/
30cache_max_age = 86400
31
32[filter:beaker]
33use = egg:Beaker#beaker_session
34cache_dir = %(here)s/user_dev/beaker
35beaker.session.key = mediagoblin
36# beaker.session.secret = somesupersecret
37beaker.session.data_dir = %(here)s/user_dev/beaker/sessions/data
38beaker.session.lock_dir = %(here)s/user_dev/beaker/sessions/lock
39
40[filter:errors]
41use = egg:mediagoblin#errors
42debug = false
43
44
45##############################
46# Server configuration options
47##############################
48
49# The server that is run by default.
50# By default, should only be accessable locally
51[server:main]
52use = egg:Paste#http
53host = 127.0.0.1
54port = 6543
55
56#######################
57# Helper server configs
58# ---------------------
59# If you are configuring the paste config manually, you can remove
60# these.
61
62# Use this if you want to run on port 6543 and have MediaGoblin be
63# viewable externally
64[server:broadcast]
65use = egg:Paste#http
66host = 0.0.0.0
67port = 6543
68
69# Use this if you want to connect via fastcgi
70[server:fcgi]
71use = egg:flup#fcgi_fork
72host = %(fcgi_host)s
73port = %(fcgi_port)s
74
75[server:http]
76use = egg:Paste#http
77host = %(http_host)s
78port = %(http_port)s