Move independent repo myunison into this repo
[distro-setup] / radicale-setup
index 826ddb92f91b9940afad82a72f914318868477c7..b885f36ef05074a7bdeaa9ad6aefeb324ba92942 100755 (executable)
@@ -2,6 +2,7 @@
 
 [[ $EUID == 0 ]] || exec sudo -E "$BASH_SOURCE" "$@"
 
+
 # davdroid setup instructions at the bottom
 
 # main docs:
@@ -22,21 +23,12 @@ pi nginx python-dulwich radicale
 # after it gets created, per the git docs.
 lnf -T /o/radicale /var/lib/radicale
 
-acme-tiny -n cal.iank.pw
-
 # from https://www.williamjbowman.com/blog/2015/07/24/setting-up-webdav-caldav-and-carddav-servers/
-mkdir /etc/nginx/caldav
-touch /etc/nginx/caldav/htpasswd
-chmod 640 /etc/nginx/caldav/htpasswd
-chgrp www-data /etc/nginx/caldav/htpasswd
-nginx-site -f 5232 - cal.iank.pw <<'EOF'
-    auth_basic "Not currently available";
-    auth_basic_user_file /etc/nginx/caldav/htpasswd;
-EOF
+
+# more config is for li in distro-end
 
 # coment in this file says this is needed for it to run on startup
 sed -ri 's/^\s*#+\s*(ENABLE_RADICALE\s*=\s*yes\s*)/\1/' /etc/default/radicale
-sgo radicale
 
 setini() {
     key="$1" value="$2" section="$3"
@@ -45,10 +37,12 @@ setini() {
 }
 
 # comments say default is 0.0.0.0:5232
-setini hosts 127.0.0.1:5232 server
+setini hosts 10.8.0.4:5232 server
+sgo radicale
 
 # davdroid from f-droid. username ian,
-# url https://iank.pw/radicale/ian.
+# url https://cal.iankelling.org
+# username ian
 # I disabled power management feature, it's got 240 min sync interval,
 # so it shouldn't be bad.
 #