mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 19:15:37 +00:00
try to fix log rotation issues
This commit is contained in:
parent
ff05b99fe1
commit
0bbbabd6e8
@ -91,8 +91,16 @@
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
# Allows Caddy to serve lower ports (443, 80)
|
systemd.services.caddy.serviceConfig = {
|
||||||
systemd.services.caddy.serviceConfig.AmbientCapabilities = "CAP_NET_BIND_SERVICE";
|
|
||||||
|
# Allows Caddy to serve lower ports (443, 80)
|
||||||
|
AmbientCapabilities = "CAP_NET_BIND_SERVICE";
|
||||||
|
|
||||||
|
# Prevent flooding of logs by rate-limiting
|
||||||
|
LogRateLimitIntervalSec = "5s"; # Limit period
|
||||||
|
LogRateLimitBurst = 100; # Limit threshold
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
# Required for web traffic to reach this machine
|
# Required for web traffic to reach this machine
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
|
@ -4,7 +4,10 @@
|
|||||||
# How long to keep journalctl entries
|
# How long to keep journalctl entries
|
||||||
# This helps to make sure log disk usage doesn't grow too unwieldy
|
# This helps to make sure log disk usage doesn't grow too unwieldy
|
||||||
services.journald.extraConfig = ''
|
services.journald.extraConfig = ''
|
||||||
SystemMaxUse=100M
|
SystemMaxUse=4G
|
||||||
|
SystemKeepFree=10G
|
||||||
|
SystemMaxFileSize=128M
|
||||||
|
SystemMaxFiles=500
|
||||||
MaxFileSec=1month
|
MaxFileSec=1month
|
||||||
MaxRetentionSec=2month
|
MaxRetentionSec=2month
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user