mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-12-24 07:37:04 +00:00
move nextcloud logging to syslog
This commit is contained in:
parent
c74069923f
commit
e3a91ece00
@ -1,5 +1,6 @@
|
|||||||
/var/log/roundcubemail/errors.log
|
/var/log/roundcubemail/errors.log
|
||||||
/var/log/roundcubemail/sendmail.log
|
/var/log/roundcubemail/sendmail.log
|
||||||
|
/var/log/nextcloud.log
|
||||||
{
|
{
|
||||||
rotate 4
|
rotate 4
|
||||||
weekly
|
weekly
|
||||||
|
4
conf/rsyslog/20-nextcloud.conf
Normal file
4
conf/rsyslog/20-nextcloud.conf
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
:syslogtag, startswith, "Nextcloud" -/var/log/nextcloud.log
|
||||||
|
|
||||||
|
# Stop logging
|
||||||
|
& stop
|
@ -13,6 +13,9 @@ sed -i "s/\*\.\*;auth,authpriv.none.*\-\/var\/log\/syslog/\*\.\*;mail,auth,authp
|
|||||||
# Reduce logs by only logging ufw in ufw.log
|
# Reduce logs by only logging ufw in ufw.log
|
||||||
sed -i "s/#\& stop/\& stop/g" /etc/rsyslog.d/20-ufw.conf
|
sed -i "s/#\& stop/\& stop/g" /etc/rsyslog.d/20-ufw.conf
|
||||||
|
|
||||||
|
# Add nextcloud logging
|
||||||
|
hide_output install -m 644 conf/rsyslog/20-nextcloud.conf /etc/rsyslog.d/
|
||||||
|
|
||||||
restart_service rsyslog
|
restart_service rsyslog
|
||||||
|
|
||||||
# Create forward for root emails
|
# Create forward for root emails
|
||||||
|
@ -334,6 +334,8 @@ include("$STORAGE_ROOT/owncloud/config.php");
|
|||||||
|
|
||||||
\$CONFIG['logtimezone'] = '$TIMEZONE';
|
\$CONFIG['logtimezone'] = '$TIMEZONE';
|
||||||
\$CONFIG['logdateformat'] = 'Y-m-d H:i:s';
|
\$CONFIG['logdateformat'] = 'Y-m-d H:i:s';
|
||||||
|
\$CONFIG['log_type'] = 'syslog',
|
||||||
|
\$CONFIG['syslog_tag'] = 'Nextcloud',
|
||||||
|
|
||||||
\$CONFIG['mail_domain'] = '$PRIMARY_HOSTNAME';
|
\$CONFIG['mail_domain'] = '$PRIMARY_HOSTNAME';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user