forked from mirrors_public/oddlama_nix-config
feat(telegraf): allow nginx_status access via ipv6 too
This commit is contained in:
parent
73ab856da9
commit
a087b1f731
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue