diff --git a/contrib/nginx/mayan b/contrib/nginx/mayan new file mode 100644 index 0000000000..1d8f6ec95f --- /dev/null +++ b/contrib/nginx/mayan @@ -0,0 +1,22 @@ +server { + listen 80; + server_name localhost; + + location / { + include uwsgi_params; + uwsgi_pass unix:/usr/share/mayan-edms/uwsgi.sock; + + client_max_body_size 30M; # Increse if your plan to upload bigger documents + proxy_read_timeout 30s; # Increase if your document uploads take more than 30 seconds + } + + location /static { + alias /usr/share/mayan-edms/mayan/media/static; + expires 1h; + } + + location /favicon.ico { + alias /usr/share/mayan-edms/mayan/media/static/appearance/images/favicon.ico; + expires 1h; + } +} diff --git a/contrib/supervisor/mayan-celery.conf b/contrib/supervisor/mayan-celery.conf new file mode 100644 index 0000000000..ab7f24b279 --- /dev/null +++ b/contrib/supervisor/mayan-celery.conf @@ -0,0 +1,26 @@ +[program:mayan-worker] +command = /usr/share/mayan-edms/bin/python /usr/share/mayan-edms/bin/mayan-edms.py celery --settings=mayan.settings.production worker -Ofair -l ERROR +directory = /usr/share/mayan-edms +user = www-data +stdout_logfile = /var/log/mayan/worker-stdout.log +stderr_logfile = /var/log/mayan/worker-stderr.log +autostart = true +autorestart = true +startsecs = 10 +stopwaitsecs = 10 +killasgroup = true +priority = 998 + +[program:mayan-beat] +command = /usr/share/mayan-edms/bin/python /usr/share/mayan-edms/bin/mayan-edms.py celery --settings=mayan.settings.production beat -l ERROR +directory = /usr/share/mayan-edms +user = www-data +numprocs = 1 +stdout_logfile = /var/log/mayan/beat-stdout.log +stderr_logfile = /var/log/mayan/beat-stderr.log +autostart = true +autorestart = true +startsecs = 10 +stopwaitsecs = 1 +killasgroup = true +priority = 998 diff --git a/contrib/supervisor/mayan-uwsgi.conf b/contrib/supervisor/mayan-uwsgi.conf new file mode 100644 index 0000000000..89f0e77f14 --- /dev/null +++ b/contrib/supervisor/mayan-uwsgi.conf @@ -0,0 +1,6 @@ +[program:mayan-uwsgi] +command = /usr/share/mayan-edms/bin/uwsgi --ini /usr/share/mayan-edms/uwsgi.ini +user = root +autostart = true +autorestart = true +redirect_stderr = true