mirror of
https://github.com/Mailu/Mailu.git
synced 2025-01-12 02:28:20 +02:00
Store logs to /data/logs
This commit is contained in:
parent
9fc202006c
commit
caab793716
@ -1,17 +1,17 @@
|
||||
user www-data;
|
||||
worker_processes 1;
|
||||
|
||||
error_log /var/log/nginx/error.log info;
|
||||
pid /var/run/nginx.pid;
|
||||
error_log /data/logs/nginx-error.log info;
|
||||
pid /var/run/nginx.pid;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
access_log /var/log/nginx/access.log;
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
access_log /data/logs/nginx.log;
|
||||
sendfile on;
|
||||
keepalive_timeout 65;
|
||||
server_tokens off;
|
||||
|
5
config/rsyslog.conf
Normal file
5
config/rsyslog.conf
Normal file
@ -0,0 +1,5 @@
|
||||
$ModLoad imuxsock
|
||||
$ModLoad imklog
|
||||
|
||||
|
||||
*.* /data/logs/mail.log
|
@ -1,6 +1,12 @@
|
||||
[supervisord]
|
||||
nodaemon = true
|
||||
logfile = /var/log/supervisor/supervisord.log
|
||||
logfile = /data/logs/supervisord.log
|
||||
|
||||
[program:nginx]
|
||||
command = nginx -g 'daemon off;'
|
||||
|
||||
[program:rsyslog]
|
||||
command = rsyslogd -n
|
||||
|
||||
[program:postfix]
|
||||
command = /usr/lib/postfix/master -d
|
||||
@ -11,14 +17,12 @@ command = /usr/sbin/dovecot -c /etc/dovecot/dovecot.conf -F
|
||||
[program:spamassassin]
|
||||
command = /usr/sbin/spamd
|
||||
|
||||
[program:rsyslog]
|
||||
command = rsyslogd -n
|
||||
|
||||
[program:admin]
|
||||
command = uwsgi --yaml /etc/uwsgi/apps-enabled/freeposte.yml
|
||||
|
||||
[program:nginx]
|
||||
command = nginx -g 'daemon off;'
|
||||
stdout_logfile = /data/logs/admin.log
|
||||
stderr_logfile = /data/logs/admin-error.log
|
||||
|
||||
[program:webmail]
|
||||
command = php5-fpm -F
|
||||
stdout_logfile = /data/logs/php.log
|
||||
stderr_logfile = /data/logs/php-error.log
|
||||
|
Loading…
Reference in New Issue
Block a user