]> info9.net Git - wiki.git/blob - tmarble/posts/Setting_Up_MediaGoblin/srv/mediagoblin/paste_local.ini
Merge remote-tracking branch 'refs/remotes/origin/master'
[wiki.git] / tmarble / posts / Setting_Up_MediaGoblin / srv / mediagoblin / paste_local.ini
1 # If you want to make changes to this file, first copy it to
2 # paste_local.ini, then make the changes there.
3
4 [DEFAULT]
5 # Set to true to enable web-based debugging messages and etc.
6 debug = false
7
8 [pipeline:main]
9 pipeline = errors routing
10
11 [composite:routing]
12 use = egg:Paste#urlmap
13 / = mediagoblin
14 /mgoblin_media/ = publicstore_serve
15 /mgoblin_static/ = mediagoblin_static
16 /theme_static/ = theme_static
17
18 [app:mediagoblin]
19 use = egg:mediagoblin#app
20 filter-with = beaker
21 config = %(here)s/mediagoblin_local.ini %(here)s/mediagoblin.ini
22
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
45 [app:publicstore_serve]
46 use = egg:Paste#static
47 document_root = %(here)s/user_dev/media/public/
48 cache_max_age = 604800
49
50 [app:mediagoblin_static]
51 use = egg:Paste#static
52 document_root = %(here)s/mediagoblin/static/
53 cache_max_age = 86400
54
55 [app:theme_static]
56 use = egg:Paste#static
57 document_root = %(here)s/user_dev/theme_static/
58 cache_max_age = 86400
59
60 [filter:beaker]
61 use = egg:Beaker#beaker_session
62 cache_dir = %(here)s/user_dev/beaker
63 beaker.session.key = mediagoblin
64 # beaker.session.secret = somesupersecret
65 beaker.session.data_dir = %(here)s/user_dev/beaker/sessions/data
66 beaker.session.lock_dir = %(here)s/user_dev/beaker/sessions/lock
67
68 [filter:errors]
69 use = egg:mediagoblin#errors
70 debug = false
71
72
73 ##############################
74 # Server configuration options
75 ##############################
76
77 # The server that is run by default.
78 # By default, should only be accessable locally
79 [server:main]
80 use = egg:Paste#http
81 host = 127.0.0.1
82 port = 6543
83
84 #######################
85 # Helper server configs
86 # ---------------------
87 #   If you are configuring the paste config manually, you can remove
88 #   these.
89
90 # Use this if you want to run on port 6543 and have MediaGoblin be
91 # viewable externally
92 [server:broadcast]
93 use = egg:Paste#http
94 host = 0.0.0.0
95 port = 6543
96
97 # Use this if you want to connect via fastcgi
98 [server:fcgi]
99 use = egg:flup#fcgi_fork
100 host = %(fcgi_host)s
101 port = %(fcgi_port)s
102
103 [server:http]
104 use = egg:Paste#http
105 host = %(http_host)s
106 port = %(http_port)s