feat(telegraf): allow nginx_status access via ipv6 too

This commit is contained in:
oddlama 2023-07-02 12:15:43 +02:00
parent 73ab856da9
commit a087b1f731
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A

View file

@ -120,8 +120,10 @@ in {
};
services.nginx.virtualHosts = mkIf config.services.telegraf.enable {
localhost.listenAddresses = ["127.0.0.1" "[::1]"];
localhost.locations."= /nginx_status".extraConfig = ''
allow 127.0.0.0/8;
allow ::1;
deny all;
stub_status;
'';