summaryrefslogtreecommitdiff
path: root/modules/nixfiles/prometheus.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/nixfiles/prometheus.nix')
-rw-r--r--modules/nixfiles/prometheus.nix6
1 files changed, 1 insertions, 5 deletions
diff --git a/modules/nixfiles/prometheus.nix b/modules/nixfiles/prometheus.nix
index e816b74..0b0c096 100644
--- a/modules/nixfiles/prometheus.nix
+++ b/modules/nixfiles/prometheus.nix
@@ -28,11 +28,7 @@ in {
upstreams.prometheus.servers."127.0.0.1:${toString cfg.port}" = {};
virtualHosts.${domain}.locations."/" = {
proxyPass = "http://prometheus";
- extraConfig = ''
- if ($internal != 1) {
- return 403;
- }
- '';
+ extraConfig = nginxInternalOnly;
};
};