From a940f2728f653dd134a41383cf730b4e2ee8bd50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20Wypch=C5=82o?= Date: Thu, 22 Sep 2022 12:33:16 +0200 Subject: [PATCH] add skynet-webportal-nginx logrotate config --- setup-scripts/logrotate.d/skynet-webportal-nginx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 setup-scripts/logrotate.d/skynet-webportal-nginx diff --git a/setup-scripts/logrotate.d/skynet-webportal-nginx b/setup-scripts/logrotate.d/skynet-webportal-nginx new file mode 100644 index 00000000..ecf52858 --- /dev/null +++ b/setup-scripts/logrotate.d/skynet-webportal-nginx @@ -0,0 +1,16 @@ +/home/user/skynet-webportal/docker/data/nginx/logs/*.log { + daily + rotate 3650 + minsize 500M + create 644 root root + notifempty + dateext + missingok + compress + compressoptions --best + delaycompress + sharedscripts + postrotate + docker exec nginx nginx -s reopen + endscript +}