Skip to content

Commit e4b70ce

Browse files
authored
Merge pull request #525 from linuxserver/deny-metrics
block metrics access by default
2 parents f1e5561 + c5ae190 commit e4b70ce

5 files changed

Lines changed: 20 additions & 0 deletions

authelia.subdomain.conf.sample

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ server {
4242
#auth_basic "Restricted";
4343
#auth_basic_user_file /config/nginx/.htpasswd;
4444

45+
# block metrics access by default because it is unprotected
46+
# you can comment out the next line to enable remote metrics
47+
deny all;
48+
4549
include /config/nginx/proxy.conf;
4650
include /config/nginx/resolver.conf;
4751
set $upstream_app authelia;

authentik.subdomain.conf.sample

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ server {
3838
#auth_basic "Restricted";
3939
#auth_basic_user_file /config/nginx/.htpasswd;
4040

41+
# block metrics access by default because it is unprotected
42+
# you can comment out the next line to enable remote metrics
43+
deny all;
44+
4145
include /config/nginx/proxy.conf;
4246
include /config/nginx/resolver.conf;
4347
set $upstream_app authentik-server;

grafana.subdomain.conf.sample

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ server {
6262
#auth_basic "Restricted";
6363
#auth_basic_user_file /config/nginx/.htpasswd;
6464

65+
# block metrics access by default because it is unprotected
66+
# you can comment out the next line to enable remote metrics
67+
deny all;
68+
6569
include /config/nginx/proxy.conf;
6670
include /config/nginx/resolver.conf;
6771
set $upstream_app grafana;

grafana.subfolder.conf.sample

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ location ^~ /grafana/metrics {
5454
#auth_basic "Restricted";
5555
#auth_basic_user_file /config/nginx/.htpasswd;
5656

57+
# block metrics access by default because it is unprotected
58+
# you can comment out the next line to enable remote metrics
59+
deny all;
60+
5761
include /config/nginx/proxy.conf;
5862
include /config/nginx/resolver.conf;
5963
set $upstream_grafana grafana;

prometheus.subdomain.conf.sample

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ server {
7373
#auth_basic "Restricted";
7474
#auth_basic_user_file /config/nginx/.htpasswd;
7575

76+
# block metrics access by default because it is unprotected
77+
# you can comment out the next line to enable remote metrics
78+
deny all;
79+
7680
include /config/nginx/proxy.conf;
7781
include /config/nginx/resolver.conf;
7882
set $upstream_app prometheus;

0 commit comments

Comments
 (0)