| 1 | [DEFAULT] |
| 2 | # Set to true to enable web-based debugging messages and etc. |
| 3 | debug = false |
| 4 | |
| 5 | [pipeline:main] |
| 6 | pipeline = errors routing |
| 7 | |
| 8 | [composite:routing] |
| 9 | use = egg:Paste#urlmap |
| 10 | / = mediagoblin |
| 11 | /mgoblin_media/ = publicstore_serve |
| 12 | /mgoblin_static/ = mediagoblin_static |
| 13 | |
| 14 | [app:mediagoblin] |
| 15 | use = egg:mediagoblin#app |
| 16 | filter-with = beaker |
| 17 | config = %(here)s/mediagoblin_local.ini %(here)s/mediagoblin.ini |
| 18 | |
| 19 | [app:publicstore_serve] |
| 20 | use = egg:Paste#static |
| 21 | document_root = %(here)s/user_dev/media/public/ |
| 22 | cache_max_age = 604800 |
| 23 | |
| 24 | [app:mediagoblin_static] |
| 25 | use = egg:Paste#static |
| 26 | document_root = %(here)s/mediagoblin/static/ |
| 27 | cache_max_age = 86400 |
| 28 | |
| 29 | [filter:beaker] |
| 30 | use = egg:Beaker#beaker_session |
| 31 | cache_dir = %(here)s/user_dev/beaker |
| 32 | beaker.session.key = mediagoblin |
| 33 | # beaker.session.secret = somesupersecret |
| 34 | beaker.session.data_dir = %(here)s/user_dev/beaker/sessions/data |
| 35 | beaker.session.lock_dir = %(here)s/user_dev/beaker/sessions/lock |
| 36 | |
| 37 | [filter:errors] |
| 38 | use = egg:mediagoblin#errors |
| 39 | debug = false |
| 40 | |
| 41 | |
| 42 | ############################## |
| 43 | # Server configuration options |
| 44 | ############################## |
| 45 | |
| 46 | # The server that is run by default. |
| 47 | # By default, should only be accessable locally |
| 48 | [server:main] |
| 49 | use = egg:Paste#http |
| 50 | host = 127.0.0.1 |
| 51 | port = 6543 |
| 52 | |
| 53 | ####################### |
| 54 | # Helper server configs |
| 55 | # --------------------- |
| 56 | # If you are configuring the paste config manually, you can remove |
| 57 | # these. |
| 58 | |
| 59 | # Use this if you want to run on port 6543 and have MediaGoblin be |
| 60 | # viewable externally |
| 61 | [server:broadcast] |
| 62 | use = egg:Paste#http |
| 63 | host = 0.0.0.0 |
| 64 | port = 6543 |
| 65 | |
| 66 | # Use this if you want to connect via fastcgi |
| 67 | [server:fcgi] |
| 68 | use = egg:flup#fcgi |
| 69 | host = %(fcgi_host)s |
| 70 | port = %(fcgi_port)s |
| 71 | |
| 72 | [server:http] |
| 73 | use = egg:Paste#http |
| 74 | host = %(http_host)s |
| 75 | port = %(http_port)s |