diff --git a/conf/nginx-primaryonly.conf b/conf/nginx-primaryonly.conf index 4a3c04c5..1f71bdab 100644 --- a/conf/nginx-primaryonly.conf +++ b/conf/nginx-primaryonly.conf @@ -11,9 +11,11 @@ add_header Content-Security-Policy "frame-ancestors 'none';"; } - rewrite ^/.well-known/host-meta /cloud/public.php?service=host-meta last; - rewrite ^/.well-known/host-meta.json /cloud/public.php?service=host-meta-json last; - rewrite ^/.well-known/carddav /cloud/remote.php/carddav/ redirect; - rewrite ^/.well-known/caldav /cloud/remote.php/caldav/ redirect; + location /radicale { + uwsgi_pass unix:///tmp/radicale.sock; + } + + #rewrite ^/.well-known/carddav /cloud/remote.php/carddav/ redirect; <-- fix this + #rewrite ^/.well-known/caldav /cloud/remote.php/caldav/ redirect; <-- fix this # ADDITIONAL DIRECTIVES HERE diff --git a/setup/radicale.sh b/setup/radicale.sh new file mode 100644 index 00000000..3b89756e --- /dev/null +++ b/setup/radicale.sh @@ -0,0 +1,109 @@ +#!/bin/bash +# Radicale +########################## + +source setup/functions.sh # load our functions +source /etc/mailinabox.conf # load global vars + +# ### Installing Radicale + +echo "Installing Radicale (contacts/calendar)..." + +# Cleanup after Owncloud + +if [ -d $STORAGE_ROOT/owncloud ]; then + rm -rf $STORAGE_ROOT/owncloud +fi + +if [ -d /usr/local/lib/owncloud ]; then + rm -rf /usr/local/lib/owncloud +fi + +apt-get purge -qq -y owncloud* + +# Install it +apt_install install -y radicale uwsgi uwsgi-plugin-http uwsgi-plugin-python + +# Create Directories +mkdir -p $STORAGE_ROOT/radicale/etc/ +mkdir -p /var/log/radicale + +# Radicale Config file +cat > /etc/radicale/config < $STORAGE_ROOT/radicale/etc/logging < $STORAGE_ROOT/radicale/radicale.wsgi < /etc/uwsgi/apps-available/radicale.ini <