diff --git a/contrib/apache/mayan b/contrib/apache/mayan new file mode 100644 index 0000000000..a9a43cd2af --- /dev/null +++ b/contrib/apache/mayan @@ -0,0 +1,20 @@ + + # Uncomment if libapache2-mod-xsendfile is installed + # XSendFile On + # XSendFileAllowAbove On + + WSGIScriptAlias / /usr/share/mayan/mayan/wsgi/dispatch.wsgi + + + Order deny,allow + Allow from all + + ErrorLog /var/log/apache2/mayan_error.log + LogLevel warn + CustomLog /var/log/apache2/mayan_access.log combined + + Alias /mayan-site_media "/usr/share/mayan/mayan/site_media/" + + SetHandler None + + diff --git a/contrib/supervisor/libreoffice-headless.conf b/contrib/supervisor/libreoffice-headless.conf new file mode 100644 index 0000000000..c70edbaea0 --- /dev/null +++ b/contrib/supervisor/libreoffice-headless.conf @@ -0,0 +1,5 @@ +[program:openoffice] +command = /usr/lib/libreoffice/program/soffice.bin "-accept=socket,host=127.0.0.1,port=2002,tcpNoDelay=1;urp;" -headless -nodefault -nofirststartwizard -nolockcheck -nologo -norestore +stdout_logfile= /var/log/libreoffice-headless.log +redirect_stderr = true +autostart = true diff --git a/contrib/supervisor/mayan-celery.conf b/contrib/supervisor/mayan-celery.conf new file mode 100644 index 0000000000..efcfd35927 --- /dev/null +++ b/contrib/supervisor/mayan-celery.conf @@ -0,0 +1,23 @@ +; ======================================= +; celeryd supervisor example for Django +; ======================================= + +[program:celery] +command=/usr/share/mayan/bin/python /usr/share/mayan/mayan/manage.py celeryd --loglevel=INFO +directory=/usr/share/mayan/mayan +user=nobody +numprocs=1 +stdout_logfile=/var/log/mayan-celeryd.log +stderr_logfile=/var/log/mayan-celeryd.log +autostart=true +autorestart=true +startsecs=10 + +; Need to wait for currently executing tasks to finish at shutdown. +; Increase this if you have very long running tasks. +stopwaitsecs = 600 + +; if rabbitmq is supervised, set its priority higher +; so it starts first +priority=998 + diff --git a/contrib/supervisor/mayan-celerybeat.conf b/contrib/supervisor/mayan-celerybeat.conf new file mode 100644 index 0000000000..7a37e9437f --- /dev/null +++ b/contrib/supervisor/mayan-celerybeat.conf @@ -0,0 +1,19 @@ +; ========================================== +; celerybeat supervisor example for Django +; ========================================== + +[program:celerybeat] +command=/usr/share/mayan/bin/python /usr/share/mayan/mayan/manage.py celerybeat --schedule=/var/lib/celery/celerybeat-schedule --loglevel=INFO +directory=/usr/share/mayan/mayan +user=nobody +numprocs=1 +stdout_logfile=/var/log/mayan-celerybeat.log +stderr_logfile=/var/log/mayan-celerybeat.log +autostart=true +autorestart=true +startsecs=10 + +; if rabbitmq is supervised, set its priority higher +; so it starts first +priority=999 +