diff options
author | Jonas <dr@jones.dk> | 2013-11-15 22:47:23 +0100 |
---|---|---|
committer | Jonas <dr@jones.dk> | 2013-11-15 22:47:23 +0100 |
commit | 765a08104a3f9085f8c9b8f40dad082c8146b76b (patch) | |
tree | 4f2b56e1a4f3495bfb818e9a20bb6d00c1068411 /moin/uwsgi | |
parent | 4c7c7b0137c4e443eed29e75f9d6267a35c90488 (diff) |
Add uWSGI-based example MoinMoin setup, replacing earlier Apache2-specific setup.
Diffstat (limited to 'moin/uwsgi')
-rw-r--r-- | moin/uwsgi/apps-available/local-moin.ini | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/moin/uwsgi/apps-available/local-moin.ini b/moin/uwsgi/apps-available/local-moin.ini new file mode 100644 index 0000000..2be20c0 --- /dev/null +++ b/moin/uwsgi/apps-available/local-moin.ini @@ -0,0 +1,35 @@ +[uwsgi] +single-interpreter = True +plugins = python + +master = True +workers = 1 +threads = 10 +vacuum = True +max-requests = 1000 + +uid = www-cee +umask = 007 + +wsgi-file = /usr/local/etc/moin/moin.wsgi + +static-map = /moin_static194/=/usr/share/moin/htdocs/ +static-map = /moin_static194/applets/FCKeditor/=/usr/share/fckeditor/ +static-map = /favicon.ico=/usr/share/moin/htdocs/favicon.ico +static-map = /robots.txt=/usr/share/moin/htdocs/robots.txt + +#memory-report = True + +# set workers/threads, enable memory-report for a little while, consult +# logfile for sensible threshold for reload-on-rss, and only then enable +#reload-on-rss = 40 + +# merge identical memory pages after every 10th request +# more info at <http://uwsgi-docs.readthedocs.org/en/latest/KSM.html> +ksm = 10 + +# trick found at http://wiki.nginx.org/MoinMoin +include uwsgi_params +uwsgi_param SCRIPT_NAME /; +uwsgi_modifier1 30; +ignore-script-name = true |