aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-08-30 17:15:42 -0300
committerEuAndreh <eu@euandre.org>2020-08-30 17:16:22 -0300
commit5e057ae737eb17bfe130996fbcfdf965a1ba4eab (patch)
tree0df741ab9a7b1daecf247a5904a820d7ce3dee8b
parentci-gen-index.sh: Add emoji markers of CI success (diff)
downloadserver-5e057ae737eb17bfe130996fbcfdf965a1ba4eab.tar.gz
server-5e057ae737eb17bfe130996fbcfdf965a1ba4eab.tar.xz
Add prototype of logrotate configuration
-rw-r--r--vps-configuration.env.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/vps-configuration.env.nix b/vps-configuration.env.nix
index 817859d..6411720 100644
--- a/vps-configuration.env.nix
+++ b/vps-configuration.env.nix
@@ -309,6 +309,22 @@ in {
'';
};
};
+
+ logrotate = {
+ enable =
+ false; # disabled due to extraConfig not being yet out of unstable
+ extraConfig = ''
+ compress
+
+ ${envsubstConfiguration.ciLogsRoot}/*/*.log {
+ rotate 5
+ daily
+ olddir ${envsubstConfiguration.staticRoot}/logrorate/
+ createolddir 744 andreh users
+ su andreh users
+ }
+ '';
+ };
};
systemd.services = {