Merge branch 'master' into merge-python3-port
[mediagoblin.git] / paste.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 mediagoblin
10 pipeline = mediagoblin
11
12 [app:mediagoblin]
13 use = egg:mediagoblin#app
14 config = %(here)s/mediagoblin_local.ini %(here)s/mediagoblin.ini
15 # static paths
16 /mgoblin_media = %(here)s/user_dev/media/public
17 /mgoblin_static = %(here)s/mediagoblin/static
18 /theme_static = %(here)s/user_dev/theme_static
19 /plugin_static = %(here)s/user_dev/plugin_static
20
21 [loggers]
22 keys = root
23
24 [handlers]
25 keys = console
26
27 [formatters]
28 keys = generic
29
30 [logger_root]
31 level = INFO
32 handlers = console
33
34 [handler_console]
35 class = StreamHandler
36 args = (sys.stderr,)
37 level = NOTSET
38 formatter = generic
39
40 [formatter_generic]
41 format = %(asctime)s %(levelname)-7.7s [%(name)s] %(message)s
42
43 [filter:errors]
44 use = egg:mediagoblin#errors
45 debug = false
46
47
48 ##############################
49 # Server configuration options
50 ##############################
51
52 # The server that is run by default.
53 # By default, should only be accessable locally
54 [server:main]
55 use = egg:gunicorn
56 host = 127.0.0.1
57 port = 6543
58 # Gunicorn settings. See http://docs.gunicorn.org/en/19.0/settings.html
59 # for more information about configuring Gunicorn
60 proc_name = gmg
61 reload = true
62 accesslog = -
63
64 #######################
65 # Helper server configs
66 # ---------------------
67 # If you are configuring the paste config manually, you can remove
68 # these.
69
70 # Use this if you want to run on port 6543 and have MediaGoblin be
71 # viewable externally
72 [server:broadcast]
73 use = egg:Paste#http
74 host = 0.0.0.0
75 port = 6543
76
77 # Use this if you want to connect via fastcgi
78 [server:fcgi]
79 use = egg:flup#fcgi_fork
80 host = %(fcgi_host)s
81 port = %(fcgi_port)s
82
83 [server:http]
84 use = egg:Paste#http
85 host = %(http_host)s
86 port = %(http_port)s