mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2026-07-08 17:42:32 +02:00
block metrics access by default
This commit is contained in:
@@ -42,6 +42,10 @@ server {
|
||||
#auth_basic "Restricted";
|
||||
#auth_basic_user_file /config/nginx/.htpasswd;
|
||||
|
||||
# block metrics access by default because it is unprotected
|
||||
# you can comment out the next line to enable remote metrics
|
||||
deny all;
|
||||
|
||||
include /config/nginx/proxy.conf;
|
||||
include /config/nginx/resolver.conf;
|
||||
set $upstream_app authelia;
|
||||
|
||||
@@ -38,6 +38,10 @@ server {
|
||||
#auth_basic "Restricted";
|
||||
#auth_basic_user_file /config/nginx/.htpasswd;
|
||||
|
||||
# block metrics access by default because it is unprotected
|
||||
# you can comment out the next line to enable remote metrics
|
||||
deny all;
|
||||
|
||||
include /config/nginx/proxy.conf;
|
||||
include /config/nginx/resolver.conf;
|
||||
set $upstream_app authentik-server;
|
||||
|
||||
@@ -62,6 +62,10 @@ server {
|
||||
#auth_basic "Restricted";
|
||||
#auth_basic_user_file /config/nginx/.htpasswd;
|
||||
|
||||
# block metrics access by default because it is unprotected
|
||||
# you can comment out the next line to enable remote metrics
|
||||
deny all;
|
||||
|
||||
include /config/nginx/proxy.conf;
|
||||
include /config/nginx/resolver.conf;
|
||||
set $upstream_app grafana;
|
||||
|
||||
@@ -54,6 +54,10 @@ location ^~ /grafana/metrics {
|
||||
#auth_basic "Restricted";
|
||||
#auth_basic_user_file /config/nginx/.htpasswd;
|
||||
|
||||
# block metrics access by default because it is unprotected
|
||||
# you can comment out the next line to enable remote metrics
|
||||
deny all;
|
||||
|
||||
include /config/nginx/proxy.conf;
|
||||
include /config/nginx/resolver.conf;
|
||||
set $upstream_grafana grafana;
|
||||
|
||||
@@ -73,6 +73,10 @@ server {
|
||||
#auth_basic "Restricted";
|
||||
#auth_basic_user_file /config/nginx/.htpasswd;
|
||||
|
||||
# block metrics access by default because it is unprotected
|
||||
# you can comment out the next line to enable remote metrics
|
||||
deny all;
|
||||
|
||||
include /config/nginx/proxy.conf;
|
||||
include /config/nginx/resolver.conf;
|
||||
set $upstream_app prometheus;
|
||||
|
||||
Reference in New Issue
Block a user