X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=distro-end;h=0e7c4b8197dab344b80a00602e76365deaa84dfa;hb=45bb8be590318ef8f34df0d22aa9b54a83adc42e;hp=1b25a55eced2a26e3dd6e5a74903af810ca14adf;hpb=25d20d07292550e8701e33aa409e4947f3075ede;p=distro-setup
diff --git a/distro-end b/distro-end
index 1b25a55..0e7c4b8 100755
--- a/distro-end
+++ b/distro-end
@@ -131,6 +131,7 @@ fi
### end docker install ####
+
### begin certbot install ###
case $distro in
debian)
@@ -180,6 +181,22 @@ sgo certbotmail.timer
pi ${p1[@]}
+
+## prometheus node exporter setup
+web-conf -f 9100 -p 9101 apache2 $(hostname -f) <<'EOF'
+#https://httpd.apache.org/docs/2.4/mod/mod_authn_core.html#authtype
+# https://stackoverflow.com/questions/5011102/apache-reverse-proxy-with-basic-authentication
+
+ AllowOverride None
+ AuthType basic
+ AuthName "Authentication Required"
+ # setup one time, with root:www-data, 640
+ AuthUserFile "/etc/prometheus-htpasswd"
+ Require valid-user
+
+EOF
+
+
# website setup
case $HOSTNAME in
lj|li)
@@ -592,25 +609,27 @@ fi
sgo fsf-vpn-dns-cleanup
-case $distro in
- debian)
- pi chromium ;;
- trisquel|ubuntu)
- wget -qO - https://downloads.iridiumbrowser.de/ubuntu/iridium-release-sign-01.pub|sudo apt-key add -
- t=$(mktemp)
- cat >$t <$t <