WIP: gitea metrics
Eval nix flake / evals (push) Failing after 1m52s Details

This commit is contained in:
Oystein Kristoffer Tveit 2024-04-11 10:47:49 +02:00
parent c90dda4f85
commit dcfd6941b3
1 changed files with 9 additions and 0 deletions

View File

@ -61,6 +61,15 @@ in {
client_max_body_size 512M;
'';
};
locations."/metrics" = {
proxyPass = "http://unix:${cfg.settings.server.HTTP_ADDR}";
extraConfig = ''
allow ${values.hosts.ildkule.ipv4};
allow ${values.hosts.ildkule.ipv6};
deny all;
'';
};
};
networking.firewall.allowedTCPPorts = [ sshPort ];