Added sample configuration files for supervisor and apache under contrib/
This commit is contained in:
20
contrib/apache/mayan
Normal file
20
contrib/apache/mayan
Normal file
@@ -0,0 +1,20 @@
|
||||
<VirtualHost *:80>
|
||||
# Uncomment if libapache2-mod-xsendfile is installed
|
||||
# XSendFile On
|
||||
# XSendFileAllowAbove On
|
||||
|
||||
WSGIScriptAlias / /usr/share/mayan/mayan/wsgi/dispatch.wsgi
|
||||
|
||||
<Directory /usr/share/mayan/mayan>
|
||||
Order deny,allow
|
||||
Allow from all
|
||||
</Directory>
|
||||
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/"
|
||||
<Location "/site_media">
|
||||
SetHandler None
|
||||
</Location>
|
||||
</VirtualHost>
|
||||
5
contrib/supervisor/libreoffice-headless.conf
Normal file
5
contrib/supervisor/libreoffice-headless.conf
Normal file
@@ -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
|
||||
23
contrib/supervisor/mayan-celery.conf
Normal file
23
contrib/supervisor/mayan-celery.conf
Normal file
@@ -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
|
||||
|
||||
19
contrib/supervisor/mayan-celerybeat.conf
Normal file
19
contrib/supervisor/mayan-celerybeat.conf
Normal file
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user