diff --git a/conf/nginx-primaryonly.conf b/conf/nginx-primaryonly.conf index 1f71bdab..337355d5 100644 --- a/conf/nginx-primaryonly.conf +++ b/conf/nginx-primaryonly.conf @@ -12,10 +12,13 @@ } location /radicale { - uwsgi_pass unix:///tmp/radicale.sock; + access_log /var/log/radicale/access.log; + error_log /var/log/radicale/error.log; + proxy_pass http://127.0.0.1:5232; } - #rewrite ^/.well-known/carddav /cloud/remote.php/carddav/ redirect; <-- fix this - #rewrite ^/.well-known/caldav /cloud/remote.php/caldav/ redirect; <-- fix this + location ~ ^/.well-known/(caldav|carddav) { + rewrite ^ /radicale$request_uri last; + } # ADDITIONAL DIRECTIVES HERE diff --git a/setup/radicale.sh b/setup/radicale.sh index 3b89756e..ed49da3a 100644 --- a/setup/radicale.sh +++ b/setup/radicale.sh @@ -22,7 +22,7 @@ fi apt-get purge -qq -y owncloud* # Install it -apt_install install -y radicale uwsgi uwsgi-plugin-http uwsgi-plugin-python +apt_install radicale uwsgi uwsgi-core # Create Directories mkdir -p $STORAGE_ROOT/radicale/etc/ @@ -48,37 +48,26 @@ type = from_file file = $STORAGE_ROOT/radicale/etc/rights [storage] filesystem_folder = $STORAGE_ROOT/radicale/collections -[logging] -config = $STORAGE_ROOT/radicale/etc/logging -#debug = True EOF -# Logging config -cat > $STORAGE_ROOT/radicale/etc/logging < $STORAGE_ROOT/radicale/etc/rights < /etc/uwsgi/apps-available/radicale.ini < /etc/uwsgi/apps-available/radicale <