more monitoring

This commit is contained in:
Rouven Seifert 2024-05-31 14:51:58 +02:00
parent 3f206d8fe0
commit d58be54704
7 changed files with 128 additions and 14 deletions

View file

@ -20,6 +20,14 @@ in
enable = true;
email = "ca@${config.networking.domain}";
logFormat = "format console";
globalConfig = ''
servers {
metrics
}
'';
virtualHosts.":2018".extraConfig = ''
metrics
'';
virtualHosts."${config.networking.domain}".extraConfig = ''
file_server browse
root * /srv/web/${config.networking.domain}
@ -28,6 +36,6 @@ in
'';
};
systemd.services.caddy.environment.XDG_DATA_HOME = "/var/lib";
networking.firewall.allowedTCPPorts = [ 80 443 ];
networking.firewall.allowedTCPPorts = [ 80 443 2018 ];
networking.firewall.allowedUDPPorts = [ 443 ];
}