Page MenuHomeDevCentral

D3884.id10054.diff
No OneTemporary

D3884.id10054.diff

diff --git a/roles/paas-docker/nginx/config.sls b/roles/paas-docker/nginx/config.sls
--- a/roles/paas-docker/nginx/config.sls
+++ b/roles/paas-docker/nginx/config.sls
@@ -53,3 +53,11 @@
{% endif %}
{% endfor %}
{% endfor %}
+
+# -------------------------------------------------------------
+# Log
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+/etc/logrotate.d/nginx:
+ file.managed:
+ - source: salt://roles/paas-docker/nginx/files/logrotate/nginx.conf
diff --git a/roles/paas-docker/nginx/files/logrotate/nginx.conf b/roles/paas-docker/nginx/files/logrotate/nginx.conf
new file mode 100644
--- /dev/null
+++ b/roles/paas-docker/nginx/files/logrotate/nginx.conf
@@ -0,0 +1,25 @@
+# -------------------------------------------------------------
+# Salt — Logrotate configuration
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# Source file: roles/paas-docker/nginx/files/logrotate/nginx.conf
+# -------------------------------------------------------------
+#
+# <auto-generated>
+# This file is managed by our rOPS SaltStack repository.
+#
+# Changes to this file may cause incorrect behavior
+# and will be lost if the state is redeployed.
+# </auto-generated>
+
+/var/log/www/*/*.log {
+ daily
+ rotate 90
+ missingok
+ notifempty
+ compress
+ delaycompress
+ copytruncate
+}
+

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 14, 16:26 (22 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3166831
Default Alt Text
D3884.id10054.diff (1 KB)

Event Timeline