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