Commit | Line | Data |
---|---|---|
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. |
6 | debug = false | |
3a69a5dc | 7 | |
72ae87af CAW |
8 | [pipeline:main] |
9 | pipeline = errors routing | |
10 | ||
11 | [composite:routing] | |
3a69a5dc CAW |
12 | use = egg:Paste#urlmap |
13 | / = mediagoblin | |
14 | /mgoblin_media/ = publicstore_serve | |
582c4d5f | 15 | /mgoblin_static/ = mediagoblin_static |
3a69a5dc CAW |
16 | |
17 | [app:mediagoblin] | |
18 | use = egg:mediagoblin#app | |
19 | filter-with = beaker | |
91903aa6 | 20 | config = %(here)s/mediagoblin_local.ini %(here)s/mediagoblin.ini |
3a69a5dc CAW |
21 | |
22 | [app:publicstore_serve] | |
23 | use = egg:Paste#static | |
3f5cf663 | 24 | document_root = %(here)s/user_dev/media/public/ |
6347605c | 25 | cache_max_age = 604800 |
3a69a5dc | 26 | |
582c4d5f CAW |
27 | [app:mediagoblin_static] |
28 | use = egg:Paste#static | |
29 | document_root = %(here)s/mediagoblin/static/ | |
6347605c | 30 | cache_max_age = 86400 |
582c4d5f | 31 | |
3a69a5dc CAW |
32 | [filter:beaker] |
33 | use = egg:Beaker#beaker_session | |
34 | cache_dir = %(here)s/user_dev/beaker | |
35 | beaker.session.key = mediagoblin | |
36 | # beaker.session.secret = somesupersecret | |
37 | beaker.session.data_dir = %(here)s/user_dev/beaker/sessions/data | |
38 | beaker.session.lock_dir = %(here)s/user_dev/beaker/sessions/lock | |
54e219fe | 39 | |
72ae87af CAW |
40 | [filter:errors] |
41 | use = egg:mediagoblin#errors | |
42 | debug = 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] |
52 | use = egg:Paste#http | |
53 | host = 127.0.0.1 | |
54 | port = 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] | |
65 | use = egg:Paste#http | |
66 | host = 0.0.0.0 | |
67 | port = 6543 | |
68 | ||
69 | # Use this if you want to connect via fastcgi | |
4b186b73 | 70 | [server:fcgi] |
00aca685 | 71 | use = egg:flup#fcgi_fork |
6b7779ea CAW |
72 | host = %(fcgi_host)s |
73 | port = %(fcgi_port)s | |
74 | ||
75 | [server:http] | |
76 | use = egg:Paste#http | |
77 | host = %(http_host)s | |
78 | port = %(http_port)s |