31 lines
549 B
Text
31 lines
549 B
Text
|
# VPN Gateway Log Rotation
|
||
|
# Place in: /etc/logrotate.d/vpn-gateway
|
||
|
|
||
|
/var/log/vpn-*.log {
|
||
|
daily
|
||
|
rotate 7
|
||
|
compress
|
||
|
delaycompress
|
||
|
missingok
|
||
|
notifempty
|
||
|
create 640 root root
|
||
|
sharedscripts
|
||
|
postrotate
|
||
|
systemctl reload vpn-webui 2>/dev/null || true
|
||
|
endscript
|
||
|
}
|
||
|
|
||
|
/var/log/nginx/vpn-gateway*.log {
|
||
|
daily
|
||
|
rotate 14
|
||
|
compress
|
||
|
delaycompress
|
||
|
missingok
|
||
|
notifempty
|
||
|
create 640 www-data adm
|
||
|
sharedscripts
|
||
|
postrotate
|
||
|
systemctl reload nginx 2>/dev/null || true
|
||
|
endscript
|
||
|
}
|