Files
.github
etc
apt
bind
clamav
dovecot
logrotate.d
nginx
php-fpm
mysql
nginx
postfix
postfix-clearnet
security
ssh
sysctl.d
systemd
tor
login.defs
rc.local
resolv.conf
usr
var
COPYING
README.md
clean_nginx_sockets.sh
install_binaries.sh
hosting/etc/logrotate.d/nginx
2019-09-07 12:21:00 +02:00

28 lines
518 B
Plaintext

/var/log/nginx/*.log {
daily
missingok
rotate 1
nocompress
delaycompress
notifempty
create 0640 www-data www-data
sharedscripts
postrotate
start-stop-daemon --stop --signal USR1 --quiet --pidfile /run/nginx.pid >/dev/null 2>&1
endscript
}
/home/*/logs/*.log {
daily
missingok
rotate 1
nocompress
delaycompress
notifempty
su root www-data
create 0640 www-data www-data
sharedscripts
postrotate
start-stop-daemon --stop --signal USR1 --quiet --pidfile /run/nginx.pid >/dev/null 2>&1
endscript
}