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 +}