From 29b5f3660575c3daa5f7ee7c44b6213936673f58 Mon Sep 17 00:00:00 2001 From: Mathias Behrle Date: Sat, 13 Sep 2014 18:59:41 +0200 Subject: [PATCH] Adding sample ini file for nginx with uwsgi. --- contrib/nginx/mayan_uwsgi.conf | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 contrib/nginx/mayan_uwsgi.conf diff --git a/contrib/nginx/mayan_uwsgi.conf b/contrib/nginx/mayan_uwsgi.conf new file mode 100644 index 0000000000..9d272c9729 --- /dev/null +++ b/contrib/nginx/mayan_uwsgi.conf @@ -0,0 +1,19 @@ +server { + listen 80; + listen [::]:80 ipv6only=on; + server_name mayan; + access_log /var/log/nginx/access_mayan.log; + error_log /var/log/nginx/error_mayan.log; + + location / { + uwsgi_pass unix:///run/uwsgi/app/mayan/socket; + include uwsgi_params; + uwsgi_param UWSGI_SCHEME $scheme; + uwsgi_param SERVER_SOFTWARE nginx/$nginx_version; + } + + location /static/ { + root /srv/mayan/projects/mayan/mayan-edms/mayan/media/; + } + +}