feat: reduce logging on the containers
This commit is contained in:
@@ -28,6 +28,11 @@ in
|
|||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
}).out;
|
}).out;
|
||||||
|
services.prometheus.exporters.unbound = {
|
||||||
|
enable = true;
|
||||||
|
port = 9167;
|
||||||
|
openFirewall = true;
|
||||||
|
};
|
||||||
services.unbound = {
|
services.unbound = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
container = {
|
container = {
|
||||||
cores = 2;
|
cores = 2;
|
||||||
memory = 1024;
|
memory = 1024;
|
||||||
disk = "4G";
|
disk = "5G";
|
||||||
swap = 512;
|
swap = 768;
|
||||||
};
|
};
|
||||||
system = {
|
system = {
|
||||||
port = 80;
|
port = 80;
|
||||||
@@ -24,6 +24,9 @@
|
|||||||
logging = {
|
logging = {
|
||||||
enable = true;
|
enable = true;
|
||||||
metricsEnable = true;
|
metricsEnable = true;
|
||||||
|
prometheusPorts = [
|
||||||
|
9167
|
||||||
|
];
|
||||||
};
|
};
|
||||||
private = true;
|
private = true;
|
||||||
auth = true;
|
auth = true;
|
||||||
|
|||||||
@@ -20,6 +20,13 @@ in
|
|||||||
"sys-kernel-debug.mount"
|
"sys-kernel-debug.mount"
|
||||||
"sys-fs-fuse-connections.mount"
|
"sys-fs-fuse-connections.mount"
|
||||||
];
|
];
|
||||||
|
services.journald.extraConfig = ''
|
||||||
|
SystemMaxUse=200M
|
||||||
|
SystemKeepFree=100M
|
||||||
|
SystemMaxFileSize=20M
|
||||||
|
SystemMaxFiles=10
|
||||||
|
MaxRetentionSec=5day
|
||||||
|
'';
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
vim
|
vim
|
||||||
openssl
|
openssl
|
||||||
@@ -35,8 +42,12 @@ in
|
|||||||
};
|
};
|
||||||
nix.gc = {
|
nix.gc = {
|
||||||
automatic = true;
|
automatic = true;
|
||||||
dates = "weekly";
|
dates = "daily";
|
||||||
options = "--delete-older-than 7d";
|
options = "--delete-older-than 3d";
|
||||||
|
};
|
||||||
|
nix.optimise = {
|
||||||
|
automatic = true;
|
||||||
|
dates = [ "weekly" ];
|
||||||
};
|
};
|
||||||
networking.nameservers =
|
networking.nameservers =
|
||||||
(
|
(
|
||||||
|
|||||||
Reference in New Issue
Block a user