Skip to content

Commit 3e4c4c2

Browse files
authored
Merge pull request #552 from linuxserver/remove-metrics
Remove metrics endpoints
2 parents e3c4a4b + 393e434 commit 3e4c4c2

5 files changed

Lines changed: 5 additions & 100 deletions

authelia.subdomain.conf.sample

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Version 2023/02/12
1+
## Version 2023/04/14
22
# make sure that your authelia container is named authelia
33
# make sure that your dns has a cname set for authelia
44
# the default authelia-server and authelia-location confs included with swag rely on
@@ -36,22 +36,4 @@ server {
3636
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
3737

3838
}
39-
40-
location ~ (/authelia)?/metrics {
41-
# enable the next two lines for http auth
42-
#auth_basic "Restricted";
43-
#auth_basic_user_file /config/nginx/.htpasswd;
44-
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-
49-
include /config/nginx/proxy.conf;
50-
include /config/nginx/resolver.conf;
51-
set $upstream_app authelia;
52-
set $upstream_port 9959;
53-
set $upstream_proto http;
54-
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
55-
56-
}
5739
}

authentik.subdomain.conf.sample

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Version 2023/02/12
1+
## Version 2023/04/14
22
# make sure that your authentik container is named authentik-server
33
# make sure that your dns has a cname set for authentik
44

@@ -32,22 +32,4 @@ server {
3232
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
3333

3434
}
35-
36-
location ~ (/authentik)?/metrics {
37-
# enable the next two lines for http auth
38-
#auth_basic "Restricted";
39-
#auth_basic_user_file /config/nginx/.htpasswd;
40-
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-
45-
include /config/nginx/proxy.conf;
46-
include /config/nginx/resolver.conf;
47-
set $upstream_app authentik-server;
48-
set $upstream_port 9300;
49-
set $upstream_proto http;
50-
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
51-
52-
}
5335
}

grafana.subdomain.conf.sample

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Version 2023/02/12
1+
## Version 2023/04/14
22
# make sure that your grafana container is named grafana
33
# make sure that your dns has a cname set for grafana
44

@@ -56,22 +56,4 @@ server {
5656
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
5757

5858
}
59-
60-
location ~ (/grafana)?/metrics {
61-
# enable the next two lines for http auth
62-
#auth_basic "Restricted";
63-
#auth_basic_user_file /config/nginx/.htpasswd;
64-
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-
69-
include /config/nginx/proxy.conf;
70-
include /config/nginx/resolver.conf;
71-
set $upstream_app grafana;
72-
set $upstream_port 3000;
73-
set $upstream_proto http;
74-
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
75-
76-
}
7759
}

grafana.subfolder.conf.sample

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Version 2023/02/12
1+
## Version 2023/04/14
22
# make sure that your grafana container is named grafana
33
# make sure that grafana is set to work with the base url /grafana/
44
# grafana requires environment variables set thus:
@@ -48,26 +48,3 @@ location ^~ /grafana/api {
4848
rewrite ^/grafana/(.*)$ /$1 break;
4949

5050
}
51-
52-
location ^~ /grafana/metrics {
53-
# enable the next two lines for http auth
54-
#auth_basic "Restricted";
55-
#auth_basic_user_file /config/nginx/.htpasswd;
56-
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-
61-
include /config/nginx/proxy.conf;
62-
include /config/nginx/resolver.conf;
63-
set $upstream_grafana grafana;
64-
set $upstream_port 3000;
65-
set $upstream_proto http;
66-
proxy_pass http://$upstream_grafana:$upstream_port ;
67-
68-
# Clear Authorization Header if you are using http auth and normal Grafana auth
69-
#proxy_set_header Authorization "";
70-
71-
rewrite ^/grafana/(.*)$ /$1 break;
72-
73-
}

prometheus.subdomain.conf.sample

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Version 2023/02/12
1+
## Version 2023/04/14
22
# make sure that your prometheus container is named prometheus
33
# make sure that your dns has a cname set for prometheus
44

@@ -67,22 +67,4 @@ server {
6767
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
6868

6969
}
70-
71-
location ~ (/prometheus)?/metrics {
72-
# enable the next two lines for http auth
73-
#auth_basic "Restricted";
74-
#auth_basic_user_file /config/nginx/.htpasswd;
75-
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-
80-
include /config/nginx/proxy.conf;
81-
include /config/nginx/resolver.conf;
82-
set $upstream_app prometheus;
83-
set $upstream_port 9090;
84-
set $upstream_proto http;
85-
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
86-
87-
}
8870
}

0 commit comments

Comments
 (0)