fix
This commit is contained in:
parent
750cf209ee
commit
662f7d702e
4 changed files with 20 additions and 29 deletions
|
|
@ -21,10 +21,6 @@
|
|||
allowedUDPPorts = [
|
||||
443 # HTTP/3
|
||||
];
|
||||
extraInputRules = ''
|
||||
ip saddr 195.160.173.14/32 tcp dport 9009 accept comment "Allow monitoring to scrape"
|
||||
ip6 saddr 2001:678:760:cccb::14/128 tcp dport 9009 accept comment "Allow monitoring to scrape"
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -18,6 +18,13 @@
|
|||
proxy_http_version 1.1;
|
||||
'';
|
||||
};
|
||||
"/metrics" = {
|
||||
return = "204 \"🔍️\"";
|
||||
extraConfig = ''
|
||||
allow 2001:678:760:cccb::14;
|
||||
allow 195.160.173.14;
|
||||
deny all;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
type = "metrics";
|
||||
tls = false;
|
||||
port = 9009;
|
||||
bind_addresses = [ "::" "0.0.0.0" ];
|
||||
bind_addresses = [ "::1" ];
|
||||
resources = [
|
||||
{
|
||||
compress = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue