From 5e057ae737eb17bfe130996fbcfdf965a1ba4eab Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 30 Aug 2020 17:15:42 -0300 Subject: Add prototype of logrotate configuration --- vps-configuration.env.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'vps-configuration.env.nix') 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 = { -- cgit v1.2.3