Compare commits

..

2 commits

Author SHA1 Message Date
eyjhb
629f8f02d7
common-config.journald: only store in-memory, max 100MB, maximum 1d
Clears all logs on reboot, clears data after 100MB or after 1day,
whatever comes first.
2024-12-18 15:20:56 +01:00
eyjhb
d1cb03f213
server.nginx: disables access logging 2024-12-18 15:20:38 +01:00
2 changed files with 12 additions and 1 deletions

View file

@ -22,6 +22,11 @@ in {
# only allow PFS-enabled ciphers with AES256
sslCiphers = "AES256+EECDH:AES256+EDH:!aNULL";
# disable access logs
commonHttpConfig= ''
access_log off;
'';
# setup a default site
virtualHosts.default = {
default = lib.mkDefault true;

View file

@ -6,7 +6,13 @@
settings.PasswordAuthentication = false;
};
journald.extraConfig = "SystemMaxUse=100M";
journald = {
storage = "volatile";
extraConfig = ''
SystemMaxUse=100M
MaxRetentionSec=1d
'';
};
};
nix = {