mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2025-12-11 13:07:15 +01:00
WIP: gitea metrics
This commit is contained in:
@@ -45,6 +45,7 @@ in {
|
||||
DISABLE_GRAVATAR = true;
|
||||
ENABLE_FEDERATED_AVATAR = false;
|
||||
};
|
||||
metrics.ENABLED = true;
|
||||
actions.ENABLED = true;
|
||||
};
|
||||
};
|
||||
@@ -61,6 +62,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 ];
|
||||
|
||||
Reference in New Issue
Block a user