diff options
author | Dmitry Ilvokhin <d@ilvokhin.com> | 2023-12-21 16:37:22 +0000 |
---|---|---|
committer | Dmitry Ilvokhin <d@ilvokhin.com> | 2023-12-21 16:37:22 +0000 |
commit | 074a92bc1571cf5f1d039cea2348d8b134aa1f75 (patch) | |
tree | c703e9d55c6966a93b78b32ee9b6932c4048d7f5 /roles/web/files/nginx | |
parent | b615331899acdf1ef51fc36d5b7f3eace057734c (diff) | |
download | infra-074a92bc1571cf5f1d039cea2348d8b134aa1f75.tar.gz infra-074a92bc1571cf5f1d039cea2348d8b134aa1f75.tar.bz2 infra-074a92bc1571cf5f1d039cea2348d8b134aa1f75.zip |
Enable logrotate for nginx logs
Diffstat (limited to 'roles/web/files/nginx')
-rw-r--r-- | roles/web/files/nginx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/roles/web/files/nginx b/roles/web/files/nginx new file mode 100644 index 0000000..da8ba47 --- /dev/null +++ b/roles/web/files/nginx @@ -0,0 +1,12 @@ +/var/log/nginx/*log { + missingok + notifempty + create 640 http root + daily + rotate 14 + sharedscripts + compress + postrotate + test ! -r /run/nginx.pid || kill -USR1 `cat /run/nginx.pid` + endscript +} |