download.binaergewitter: access logs are now automatically rotated by logrotate
This commit is contained in:
parent
9bafbb859f
commit
3156f22c5f
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue