Skip to content
Snippets Groups Projects
Commit c0d22207 authored by Florian Sesser's avatar Florian Sesser
Browse files

PaymentServer: Allow only IPs from monitoringvpn to access /metrics

NGINX does longest-prefix-match for selecting locations.
parent 5367c8fa
No related branches found
No related tags found
3 merge requests!180merge develop into production,!177merge develop into staging,!146Manage access to payment metrics
Pipeline #928 passed
......@@ -112,6 +112,14 @@
locations."/" = {
proxyPass = "http://127.0.0.1:${toString config.services.private-storage-issuer.httpPort}";
};
locations."/metrics" = {
# Only allow our monitoringvpn subnet
extraConfig = ''
allow 172.23.23.0/24;
deny all;
'';
proxyPass = "http://127.0.0.1:${toString config.services.private-storage-issuer.httpPort}";
};
};
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment