WIP: nginx: Add metrics

This commit is contained in:
Tristan Daniël Maat 2023-10-02 22:53:56 +02:00
parent afcc959bf9
commit 3a818ecc21
Signed by: tlater
GPG key ID: 49670FD774E43268
2 changed files with 12 additions and 0 deletions

View file

@ -137,6 +137,8 @@
recommendedProxySettings = true;
clientMaxBodySize = "10G";
domain = "tlater.net";
statusPage = true; # For metrics, should be accessible only from localhost
};
security.acme = {

View file

@ -50,6 +50,16 @@ in {
enabledCollectors = ["systemd"];
listenAddress = "127.0.0.1";
};
nginx = {
enable = true;
listenAddress = "127.0.0.1";
};
nginxlog = {
enable = true;
listenAddress = "127.0.0.1";
};
};
systemd.services.export-to-victoriametrics = let