introduce nginx role
This commit is contained in:
parent
88e9560a53
commit
2ab4b9be13
10 changed files with 314 additions and 0 deletions
13
roles/nginx/files/etc/logrotate.d/nginx
Normal file
13
roles/nginx/files/etc/logrotate.d/nginx
Normal file
|
@ -0,0 +1,13 @@
|
|||
/var/log/nginx/*.log {
|
||||
daily
|
||||
missingok
|
||||
rotate 30
|
||||
compress
|
||||
delaycompress
|
||||
notifempty
|
||||
create 640 nginx adm
|
||||
sharedscripts
|
||||
postrotate
|
||||
[ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid`
|
||||
endscript
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue