Add DB Mixin classes and use them
[mediagoblin.git] / paste.ini
CommitLineData
daed11b8
E
1# If you want to make changes to this file, first copy it to
2# paste_local.ini, then make the changes there.
3
3a69a5dc 4[DEFAULT]
72ae87af
CAW
5# Set to true to enable web-based debugging messages and etc.
6debug = false
3a69a5dc 7
72ae87af
CAW
8[pipeline:main]
9pipeline = errors routing
10
11[composite:routing]
3a69a5dc
CAW
12use = egg:Paste#urlmap
13/ = mediagoblin
14/mgoblin_media/ = publicstore_serve
582c4d5f 15/mgoblin_static/ = mediagoblin_static
3a69a5dc
CAW
16
17[app:mediagoblin]
18use = egg:mediagoblin#app
19filter-with = beaker
91903aa6 20config = %(here)s/mediagoblin_local.ini %(here)s/mediagoblin.ini
3a69a5dc
CAW
21
22[app:publicstore_serve]
23use = egg:Paste#static
3f5cf663 24document_root = %(here)s/user_dev/media/public/
6347605c 25cache_max_age = 604800
3a69a5dc 26
582c4d5f
CAW
27[app:mediagoblin_static]
28use = egg:Paste#static
29document_root = %(here)s/mediagoblin/static/
6347605c 30cache_max_age = 86400
582c4d5f 31
3a69a5dc
CAW
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
54e219fe 39
72ae87af
CAW
40[filter:errors]
41use = egg:mediagoblin#errors
42debug = false
43
505310c2
CAW
44
45##############################
46# Server configuration options
47##############################
48
49# The server that is run by default.
50# By default, should only be accessable locally
54e219fe
CAW
51[server:main]
52use = egg:Paste#http
53host = 127.0.0.1
54port = 6543
4b186b73 55
505310c2
CAW
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
4b186b73 70[server:fcgi]
00aca685 71use = egg:flup#fcgi_fork
6b7779ea
CAW
72host = %(fcgi_host)s
73port = %(fcgi_port)s
74
75[server:http]
76use = egg:Paste#http
77host = %(http_host)s
78port = %(http_port)s