Merge branch 'video_gstreamer-only'
[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 routing
10
11 [composite:routing]
12 use = egg:Paste#urlmap
13 / = mediagoblin
14 /mgoblin_media/ = publicstore_serve
15 /mgoblin_static/ = mediagoblin_static
16
17 [app:mediagoblin]
18 use = egg:mediagoblin#app
19 filter-with = beaker
20 config = %(here)s/mediagoblin_local.ini %(here)s/mediagoblin.ini
21
22 [app:publicstore_serve]
23 use = egg:Paste#static
24 document_root = %(here)s/user_dev/media/public/
25 cache_max_age = 604800
26
27 [app:mediagoblin_static]
28 use = egg:Paste#static
29 document_root = %(here)s/mediagoblin/static/
30 cache_max_age = 86400
31
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
39
40 [filter:errors]
41 use = egg:mediagoblin#errors
42 debug = false
43
44
45 ##############################
46 # Server configuration options
47 ##############################
48
49 # The server that is run by default.
50 # By default, should only be accessable locally
51 [server:main]
52 use = egg:Paste#http
53 host = 127.0.0.1
54 port = 6543
55
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
70 [server:fcgi]
71 use = egg:flup#fcgi_fork
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