download.binaergewitter: access logs are now automatically rotated by logrotate

This commit is contained in:
makefu 2023-10-02 00:40:36 +02:00
parent 9bafbb859f
commit 3156f22c5f
No known key found for this signature in database
GPG key ID: 36F7711F3FC0F225

View file

@ -48,13 +48,14 @@ in {
services.logrotate = {
enable = true;
settings.bgt = {
files = [ bgtaccess bgterror ];
rotate = 5;
frequency = "weekly";
create = "600 nginx nginx";
postrotate = "${pkgs.systemd}/bin/systemctl reload nginx";
};
# now part of generic logrotate of nginx
#settings.bgt = {
# files = [ bgtaccess bgterror ];
# rotate = 5;
# frequency = "weekly";
# create = "600 nginx nginx";
# postrotate = "${pkgs.systemd}/bin/systemctl reload nginx";
#};
};
# 20.09 unharden nginx to write logs