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