X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=distro-end;h=b54285878e17a743de221ca36550294640aa5dda;hb=23a824d2e65674d73c8748b537fa0f3995113e94;hp=1b25a55eced2a26e3dd6e5a74903af810ca14adf;hpb=25d20d07292550e8701e33aa409e4947f3075ede;p=distro-setup diff --git a/distro-end b/distro-end index 1b25a55..b542858 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 <