Browse Source

fix column

lushuncheng 6 years ago
parent
commit
3a3d7c8964
1 changed files with 17 additions and 0 deletions
  1. 17 0
      config/logrotate/log.conf

+ 17 - 0
config/logrotate/log.conf

@@ -0,0 +1,17 @@
+/workspace/containers/{{containerName}}/log/*.log
+/workspace/containers/{{containerName}}/log/proginn_cache/Logs/*.log
+/workspace/containers/{{containerName}}/log/logs/*.log {
+    su root www-data
+    daily
+    missingok
+    rotate 5
+    dateext
+    copytruncate
+    compress
+    delaycompress
+    notifempty
+    create 666 www-data www-data
+    postrotate
+        docker exec {{containerName}} nginx -s reload
+    endscript
+}