| 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 | [loggers] |
| 23 | keys = root |
| 24 | |
| 25 | [handlers] |
| 26 | keys = console |
| 27 | |
| 28 | [formatters] |
| 29 | keys = generic |
| 30 | |
| 31 | [logger_root] |
| 32 | level = INFO |
| 33 | handlers = console |
| 34 | |
| 35 | [handler_console] |
| 36 | class = StreamHandler |
| 37 | args = (sys.stderr,) |
| 38 | level = NOTSET |
| 39 | formatter = generic |
| 40 | |
| 41 | [formatter_generic] |
| 42 | format = %(asctime)s %(levelname)-7.7s [%(name)s] %(message)s |
| 43 | |
| 44 | [app:publicstore_serve] |
| 45 | use = egg:Paste#static |
| 46 | document_root = %(here)s/user_dev/media/public/ |
| 47 | cache_max_age = 604800 |
| 48 | |
| 49 | [app:mediagoblin_static] |
| 50 | use = egg:Paste#static |
| 51 | document_root = %(here)s/mediagoblin/static/ |
| 52 | cache_max_age = 86400 |
| 53 | |
| 54 | [filter:beaker] |
| 55 | use = egg:Beaker#beaker_session |
| 56 | cache_dir = %(here)s/user_dev/beaker |
| 57 | beaker.session.key = mediagoblin |
| 58 | # beaker.session.secret = somesupersecret |
| 59 | beaker.session.data_dir = %(here)s/user_dev/beaker/sessions/data |
| 60 | beaker.session.lock_dir = %(here)s/user_dev/beaker/sessions/lock |
| 61 | |
| 62 | [filter:errors] |
| 63 | use = egg:mediagoblin#errors |
| 64 | debug = false |
| 65 | |
| 66 | |
| 67 | ############################## |
| 68 | # Server configuration options |
| 69 | ############################## |
| 70 | |
| 71 | # The server that is run by default. |
| 72 | # By default, should only be accessable locally |
| 73 | [server:main] |
| 74 | use = egg:Paste#http |
| 75 | host = 127.0.0.1 |
| 76 | port = 6543 |
| 77 | |
| 78 | ####################### |
| 79 | # Helper server configs |
| 80 | # --------------------- |
| 81 | # If you are configuring the paste config manually, you can remove |
| 82 | # these. |
| 83 | |
| 84 | # Use this if you want to run on port 6543 and have MediaGoblin be |
| 85 | # viewable externally |
| 86 | [server:broadcast] |
| 87 | use = egg:Paste#http |
| 88 | host = 0.0.0.0 |
| 89 | port = 6543 |
| 90 | |
| 91 | # Use this if you want to connect via fastcgi |
| 92 | [server:fcgi] |
| 93 | use = egg:flup#fcgi_fork |
| 94 | host = %(fcgi_host)s |
| 95 | port = %(fcgi_port)s |
| 96 | |
| 97 | [server:http] |
| 98 | use = egg:Paste#http |
| 99 | host = %(http_host)s |
| 100 | port = %(http_port)s |