X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=distro-end;h=dde7a1026206449daf0f6affa9828b9424e3e84d;hb=69c1f384f54bba59a693c4ac9d61d8f7f3692269;hp=202f85fee2c6ea401a23a872715fa884bf9051de;hpb=a84e2166aafd58213298ff4b2f674a4b644cc416;p=distro-setup diff --git a/distro-end b/distro-end index 202f85f..dde7a10 100755 --- a/distro-end +++ b/distro-end @@ -299,6 +299,24 @@ EOF acme-tiny-wrapper mail.iankelling.org sgo openvpn tu /etc/hosts <<<"10.8.0.4 mail.iankelling.org" + domain=cal.iankelling.org + acme-tiny-wrapper $domain + apache-site -f 10.8.0.4:5232 - $domain <<'EOF' +#https://httpd.apache.org/docs/2.4/mod/mod_authn_core.html#authtype + + Options +FollowSymLinks +Multiviews +Indexes + AllowOverride None + AuthType basic + AuthName "Authentication Required" + # setup one time, with root:www-data, 640 + AuthUserFile "/etc/caldav-htpasswd" + Require valid-user + +EOF + # nginx version of above would be: + # auth_basic "Not currently available"; + # auth_basic_user_file /etc/nginx/caldav/htpasswd; + echo "$0: $(date): ending now)"