From 765a08104a3f9085f8c9b8f40dad082c8146b76b Mon Sep 17 00:00:00 2001 From: Jonas Date: Fri, 15 Nov 2013 22:47:23 +0100 Subject: Add uWSGI-based example MoinMoin setup, replacing earlier Apache2-specific setup. --- moin/uwsgi/apps-available/local-moin.ini | 35 ++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 moin/uwsgi/apps-available/local-moin.ini (limited to 'moin/uwsgi') 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 +ksm = 10 + +# trick found at http://wiki.nginx.org/MoinMoin +include uwsgi_params +uwsgi_param SCRIPT_NAME /; +uwsgi_modifier1 30; +ignore-script-name = true -- cgit v1.2.3