diff options
author | Dmitry Ilvokhin <d@ilvokhin.com> | 2023-12-21 18:08:22 +0000 |
---|---|---|
committer | Dmitry Ilvokhin <d@ilvokhin.com> | 2023-12-21 18:08:22 +0000 |
commit | 98deb6b468c52d09c69c699b02ab16791f557beb (patch) | |
tree | 3dd114dfd79a81f577c0ffa93e8bf3bd06d70759 /roles/web/files/nginx/nginx.logrotate | |
parent | 1fe154b136bce2fb063e39050d9bc0deb2279bb0 (diff) | |
download | infra-98deb6b468c52d09c69c699b02ab16791f557beb.tar.gz infra-98deb6b468c52d09c69c699b02ab16791f557beb.tar.bz2 infra-98deb6b468c52d09c69c699b02ab16791f557beb.zip |
Enable certbot for certificates renewal
Diffstat (limited to 'roles/web/files/nginx/nginx.logrotate')
-rw-r--r-- | roles/web/files/nginx/nginx.logrotate | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/roles/web/files/nginx/nginx.logrotate b/roles/web/files/nginx/nginx.logrotate new file mode 100644 index 0000000..da8ba47 --- /dev/null +++ b/roles/web/files/nginx/nginx.logrotate @@ -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 +} |