19 Commits

Author SHA1 Message Date
Christopher Allan Webber
5b64c92e08 Temporarily disabling the mediagoblin errors middleware
We don't have paste (core) in py3, so....
2014-09-15 14:26:57 -05:00
Berker Peksag
f3c1b6ff6d Restore different server options. 2014-08-15 22:35:22 +03:00
Berker Peksag
19baab1b03 Remove Paste#http, Paste#urlmap and Paste#static dependencies.
Changes:

* Paste#http -> Gunicorn
* Paste#urlmap and Paste#static -> werkzeug.wsgi.SharedDataMiddleware
2014-06-29 04:23:50 +03:00
Christopher Allan Webber
2f21842159 Oh right, actually mount /plugin_static/ :) 2013-05-23 13:33:07 -05:00
Christopher Allan Webber
5ccb16ca20 Work towards getting plugin static linking/serving to work
- add link_plugin_assets.  For now, incorrectly running from
   ./bin/gmg theme assetlink... uh, will fix ;)
 - Update paste and config_spec.ini configs to handle the locations
   and serving of the plugins' static resources

This commit sponsored by Marko Dimjašević.  Thank you!
2013-05-23 13:33:07 -05:00
Elrond
82a40cc4e1 Remove the last traces of beaker.
There were still some traces of beaker around:
- docs: replaced by reference to itsdangerous.
- paste configs: Wiped away.
- config_spec.ini: wiped.
- test_mgoblin_app.ini: also wiped.
2013-04-09 22:39:04 +02:00
Brett Smith
9e1fa2396f Remove beaker stuff from the code.
This is all obsoleted by It's Dangerous.
2013-03-24 15:10:08 -04:00
Christopher Allan Webber
71eb457748 Serve and setup the mediagoblin "linked theme" assets directory 2012-07-14 12:55:14 -05:00
Elrond
7cbbf3e75b Create a default logging config
paste uses paste.ini to configure python's logging module.

Until now, there was NO config, not even a useful default
one. This means: any messages went away unseen.
Not good.

The new default logs everything to stderr at level INFO and
higher. Maybe not the best, but a good starting point.
2012-01-09 14:39:16 +01:00
Elrond
daed11b812 640: Configuration files should mention their _local versions
Thanks go to Aleksej Serdjukov for bringing this up and
providing the patch in the bug!
2011-11-12 14:28:55 +01:00
Christopher Allan Webber
00aca6851e Make sure we run fcgi in forked mode... mediagoblin is not currently thread safe! 2011-10-30 18:37:32 -05:00
Christopher Allan Webber
6b7779ea57 More easy options for deploying without having to modify paste.ini... 2011-10-30 13:58:54 -05:00
Christopher Allan Webber
505310c292 Added a "broadcast" server config and a bit of helpful commenting (I hope!) 2011-10-30 11:51:40 -05:00
Christopher Allan Webber
91903aa601 [620] Allow for multiple mediagoblin configs to be set in config.ini, use first
This way we can copy paste.ini into paste_local.ini but not have to
update it to find mediagoblin_local.ini.
2011-10-29 17:04:19 -05:00
Christopher Allan Webber
312643c12c flup, not flerp! 2011-10-23 16:12:10 -05:00
Christopher Allan Webber
4b186b7398 Add a flup server option to the default paste.ini to make deployment a bit easier. 2011-10-23 15:21:15 -05:00
Elrond
6347605c1e When using paste's static content server to serve media
entries and other files the client should have some idea on
how long it can cache those files locally before asking
again for them.

The old setting was: Don't allow the client to cache.

New setting:
  1 week for the media entries (they don't change, ever)
  1 day for css/logos, etc. They change on an update, so
    people might want to see the new design soon.
2011-09-29 20:15:53 +02:00
Christopher Allan Webber
72ae87af4a Slightly wrapping paste error middleware and turning it on
Now we can show a nice "borked goblin" error :)
2011-08-21 00:09:29 -05:00
Christopher Allan Webber
41f965c59d Moving server.ini->paste.ini because willkg points out server.ini is ambiguous
Updating the file, updating lazyserver.sh, updating docs.
2011-06-20 08:55:58 -05:00