Commit | Line | Data |
---|---|---|
3a69a5dc | 1 | [DEFAULT] |
72ae87af CAW |
2 | # Set to true to enable web-based debugging messages and etc. |
3 | debug = false | |
3a69a5dc | 4 | |
72ae87af CAW |
5 | [pipeline:main] |
6 | pipeline = errors routing | |
7 | ||
8 | [composite:routing] | |
3a69a5dc CAW |
9 | use = egg:Paste#urlmap |
10 | / = mediagoblin | |
11 | /mgoblin_media/ = publicstore_serve | |
582c4d5f | 12 | /mgoblin_static/ = mediagoblin_static |
3a69a5dc CAW |
13 | |
14 | [app:mediagoblin] | |
15 | use = egg:mediagoblin#app | |
16 | filter-with = beaker | |
91903aa6 | 17 | config = %(here)s/mediagoblin_local.ini %(here)s/mediagoblin.ini |
3a69a5dc CAW |
18 | |
19 | [app:publicstore_serve] | |
20 | use = egg:Paste#static | |
3f5cf663 | 21 | document_root = %(here)s/user_dev/media/public/ |
6347605c | 22 | cache_max_age = 604800 |
3a69a5dc | 23 | |
582c4d5f CAW |
24 | [app:mediagoblin_static] |
25 | use = egg:Paste#static | |
26 | document_root = %(here)s/mediagoblin/static/ | |
6347605c | 27 | cache_max_age = 86400 |
582c4d5f | 28 | |
3a69a5dc CAW |
29 | [filter:beaker] |
30 | use = egg:Beaker#beaker_session | |
31 | cache_dir = %(here)s/user_dev/beaker | |
32 | beaker.session.key = mediagoblin | |
33 | # beaker.session.secret = somesupersecret | |
34 | beaker.session.data_dir = %(here)s/user_dev/beaker/sessions/data | |
35 | beaker.session.lock_dir = %(here)s/user_dev/beaker/sessions/lock | |
54e219fe | 36 | |
72ae87af CAW |
37 | [filter:errors] |
38 | use = egg:mediagoblin#errors | |
39 | debug = false | |
40 | ||
505310c2 CAW |
41 | |
42 | ############################## | |
43 | # Server configuration options | |
44 | ############################## | |
45 | ||
46 | # The server that is run by default. | |
47 | # By default, should only be accessable locally | |
54e219fe CAW |
48 | [server:main] |
49 | use = egg:Paste#http | |
50 | host = 127.0.0.1 | |
51 | port = 6543 | |
4b186b73 | 52 | |
505310c2 CAW |
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] | |
62 | use = egg:Paste#http | |
63 | host = 0.0.0.0 | |
64 | port = 6543 | |
65 | ||
66 | # Use this if you want to connect via fastcgi | |
4b186b73 | 67 | [server:fcgi] |
312643c1 | 68 | use = egg:flup#fcgi |
6b7779ea CAW |
69 | host = %(fcgi_host)s |
70 | port = %(fcgi_port)s | |
71 | ||
72 | [server:http] | |
73 | use = egg:Paste#http | |
74 | host = %(http_host)s | |
75 | port = %(http_port)s |