Work towards getting plugin static linking/serving to work
[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
71eb4577 16/theme_static/ = theme_static
3a69a5dc
CAW
17
18[app:mediagoblin]
19use = egg:mediagoblin#app
91903aa6 20config = %(here)s/mediagoblin_local.ini %(here)s/mediagoblin.ini
3a69a5dc 21
7cbbf3e7
E
22[loggers]
23keys = root
24
25[handlers]
26keys = console
27
28[formatters]
29keys = generic
30
31[logger_root]
32level = INFO
33handlers = console
34
35[handler_console]
36class = StreamHandler
37args = (sys.stderr,)
38level = NOTSET
39formatter = generic
40
41[formatter_generic]
42format = %(asctime)s %(levelname)-7.7s [%(name)s] %(message)s
43
3a69a5dc
CAW
44[app:publicstore_serve]
45use = egg:Paste#static
3f5cf663 46document_root = %(here)s/user_dev/media/public/
6347605c 47cache_max_age = 604800
3a69a5dc 48
582c4d5f
CAW
49[app:mediagoblin_static]
50use = egg:Paste#static
51document_root = %(here)s/mediagoblin/static/
6347605c 52cache_max_age = 86400
582c4d5f 53
71eb4577
CAW
54[app:theme_static]
55use = egg:Paste#static
56document_root = %(here)s/user_dev/theme_static/
57cache_max_age = 86400
58
5ccb16ca
CAW
59[app:plugin_static]
60use = egg:Paste#static
61document_root = %(here)s/user_dev/plugin_static/
62cache_max_age = 86400
63
72ae87af
CAW
64[filter:errors]
65use = egg:mediagoblin#errors
66debug = false
67
505310c2
CAW
68
69##############################
70# Server configuration options
71##############################
72
73# The server that is run by default.
74# By default, should only be accessable locally
54e219fe
CAW
75[server:main]
76use = egg:Paste#http
77host = 127.0.0.1
78port = 6543
4b186b73 79
505310c2
CAW
80#######################
81# Helper server configs
82# ---------------------
83# If you are configuring the paste config manually, you can remove
84# these.
85
86# Use this if you want to run on port 6543 and have MediaGoblin be
87# viewable externally
88[server:broadcast]
89use = egg:Paste#http
90host = 0.0.0.0
91port = 6543
92
93# Use this if you want to connect via fastcgi
4b186b73 94[server:fcgi]
00aca685 95use = egg:flup#fcgi_fork
6b7779ea
CAW
96host = %(fcgi_host)s
97port = %(fcgi_port)s
98
99[server:http]
100use = egg:Paste#http
101host = %(http_host)s
102port = %(http_port)s