]> git.openstreetmap.org Git - chef.git/blob - cookbooks/nominatim/templates/default/logrotate.nginx.erb
build(deps): bump cookstyle from 8.4.0 to 8.5.0
[chef.git] / cookbooks / nominatim / templates / default / logrotate.nginx.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 /var/log/nginx/*.log {
4   daily
5   missingok
6   rotate 7
7   compress
8   delaycompress
9   compresscmd /usr/bin/zstd
10   compressext .zst
11   compressoptions -T0 --adapt
12   uncompresscmd /usr/bin/unzstd
13   notifempty
14   create 640 www-data adm
15   sharedscripts
16   postrotate
17     [ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid`
18   endscript
19 }
20
21 <%= node[:nominatim][:logdir] %>/nominatim.openstreetmap.org-*.log {
22   daily
23   missingok
24   rotate 14
25   compress
26   delaycompress
27   compresscmd /usr/bin/zstd
28   compressext .zst
29   compressoptions -T0 --adapt
30   uncompresscmd /usr/bin/unzstd
31   notifempty
32   create 640 www-data adm
33   sharedscripts
34   postrotate
35     [ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid`
36   endscript
37 }