diff options
author | EuAndreh <eu@euandre.org> | 2020-08-30 17:15:42 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-08-30 17:16:22 -0300 |
commit | 5e057ae737eb17bfe130996fbcfdf965a1ba4eab (patch) | |
tree | 0df741ab9a7b1daecf247a5904a820d7ce3dee8b /vps-configuration.env.nix | |
parent | ci-gen-index.sh: Add emoji markers of CI success (diff) | |
download | server-5e057ae737eb17bfe130996fbcfdf965a1ba4eab.tar.gz server-5e057ae737eb17bfe130996fbcfdf965a1ba4eab.tar.xz |
Add prototype of logrotate configuration
Diffstat (limited to 'vps-configuration.env.nix')
-rw-r--r-- | vps-configuration.env.nix | 16 |
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 = { |