diff options
author | root <root@localhost> | 2013-06-26 20:45:35 +0200 |
---|---|---|
committer | root <root@localhost> | 2013-06-26 20:45:47 +0200 |
commit | fa7b271bae2d1d3beb65cd6ddb9c0e8e20c54cbc (patch) | |
tree | 59e3b83913c0712532140f12caabff7b8778166b /uwsgi/apps-available | |
parent | 1199fa5bf6fee2d97331c2223df56e1d94a6a625 (diff) |
Add Apache and uWSGI example configs for Django and RT4 apps.
Diffstat (limited to 'uwsgi/apps-available')
-rw-r--r-- | uwsgi/apps-available/local-django-app.ini | 29 | ||||
-rw-r--r-- | uwsgi/apps-available/local-rt4.ini | 16 |
2 files changed, 45 insertions, 0 deletions
diff --git a/uwsgi/apps-available/local-django-app.ini b/uwsgi/apps-available/local-django-app.ini new file mode 100644 index 0000000..9779aee --- /dev/null +++ b/uwsgi/apps-available/local-django-app.ini @@ -0,0 +1,29 @@ +[uwsgi] +single-interpreter = True +plugins = python + +uid = www-django-app +#gid = www-data +#umask = 007 +#chdir = /home/www-django-app/foo +#module = django.core.handlers.wsgi:WSGIHandler() +#module = myapp.wsgi:application +wsgi-file = /home/www-django-app/foo/myapp.wsgi +master = True +workers = 8 +cheaper = 4 +threads = 2 + +#static-map = /media/=/home/www-sjango-app/foo/static/media/ +#static-map = /robots.txt=/home/www-django-app/foo/static/robots.txt +#static-map = /favicon.ico=/home/www-django-app/foo/static/favicon.ico + +#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 5th request +# more info at <http://uwsgi-docs.readthedocs.org/en/latest/KSM.html> +ksm = 5 diff --git a/uwsgi/apps-available/local-rt4.ini b/uwsgi/apps-available/local-rt4.ini new file mode 100644 index 0000000..5d2460e --- /dev/null +++ b/uwsgi/apps-available/local-rt4.ini @@ -0,0 +1,16 @@ +[uwsgi] +single-interpreter = True +plugins = 0:psgi + +workers = 2 + +psgi = /usr/share/request-tracker4/libexec/rt-server +static-map = /rt/NoAuth/images/=/usr/share/request-tracker4/html/NoAuth/images/ + +#chdir = /usr/share/request-tracker4/html + +env = export RT_SITE_CONFIG=/etc/request-tracker4/RT_SiteConfig.pm + +# merge identical memory pages after every 10th request +# more info at <http://uwsgi-docs.readthedocs.org/en/latest/KSM.html> +ksm = 10 |