New branch
This commit is contained in:
commit
58d70409b5
31 changed files with 9093 additions and 0 deletions
30
configs/logrotate.conf
Normal file
30
configs/logrotate.conf
Normal file
|
@ -0,0 +1,30 @@
|
|||
# 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue