File tree 3 files changed +10
-0
lines changed
3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -3,4 +3,5 @@ ADD default.conf /etc/nginx/conf.d/default.template
3
3
ADD ssl.conf /etc/nginx/shared/
4
4
ADD proxy.conf /etc/nginx/shared/
5
5
ADD letsencrypt.conf /etc/nginx/shared/
6
+ ADD htpasswd /etc/nginx/shared/
6
7
CMD /bin/bash -c "envsubst \\\$ {SERVER_HOSTNAME} < /etc/nginx/conf.d/default.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
Original file line number Diff line number Diff line change @@ -62,6 +62,14 @@ server {
62
62
return 301 $scheme://forum.uspgamedev.org/;
63
63
}
64
64
65
+ location /metrics {
66
+ auth_basic "Metrics";
67
+ auth_basic_user_file /etc/nginx/shared/htpasswd;
68
+
69
+ proxy_pass http://node-exporter:9100/metrics;
70
+ include /etc/nginx/shared/proxy.conf;
71
+ }
72
+
65
73
include /etc/nginx/shared/letsencrypt.conf;
66
74
}
67
75
Original file line number Diff line number Diff line change
1
+ metrics:$apr1$6zy9mxjG$2ZJoiONXaJqDEVJ7ljmoX1
You can’t perform that action at this time.
0 commit comments