summaryrefslogtreecommitdiff
path: root/roles/nginx/files/nginx.logrotate
diff options
context:
space:
mode:
authorDmitry Ilvokhin <d@ilvokhin.com>2024-01-06 18:53:54 +0000
committerDmitry Ilvokhin <d@ilvokhin.com>2024-01-06 18:53:54 +0000
commit6c781bb8b9b5dea1f3cdb75a6cbde2b9e8942e8c (patch)
tree9426a091ae3284a117b5482a87c91a96d740c34e /roles/nginx/files/nginx.logrotate
parent6db38b7ab9ad2d629f6c317d413cc23f8a40bf44 (diff)
downloadinfra-6c781bb8b9b5dea1f3cdb75a6cbde2b9e8942e8c.tar.gz
infra-6c781bb8b9b5dea1f3cdb75a6cbde2b9e8942e8c.tar.bz2
infra-6c781bb8b9b5dea1f3cdb75a6cbde2b9e8942e8c.zip
Make nginx a role
Diffstat (limited to 'roles/nginx/files/nginx.logrotate')
-rw-r--r--roles/nginx/files/nginx.logrotate12
1 files changed, 12 insertions, 0 deletions
diff --git a/roles/nginx/files/nginx.logrotate b/roles/nginx/files/nginx.logrotate
new file mode 100644
index 0000000..da8ba47
--- /dev/null
+++ b/roles/nginx/files/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
+}