diff --git a/contrib/apache/radicale.conf b/contrib/apache/radicale.conf index 385ee159..205cc975 100644 --- a/contrib/apache/radicale.conf +++ b/contrib/apache/radicale.conf @@ -50,8 +50,8 @@ RewriteCond %{REQUEST_METHOD} GET RewriteRule ^/radicale/$ /radicale/.web/ [R,L] - - # Internal WebUI does not need authentication at all + + # Internal WebUI or Token does not need authentication at all RequestHeader set X-Script-Name /radicale RequestHeader set X-Forwarded-Port "%{SERVER_PORT}s" @@ -69,7 +69,7 @@ - + RequestHeader set X-Script-Name /radicale RequestHeader set X-Forwarded-Port "%{SERVER_PORT}s" @@ -133,8 +133,8 @@ WSGIScriptAlias /radicale /usr/share/radicale/radicale.wsgi - # Internal WebUI does not need authentication at all - + # Internal WebUI or Token does not need authentication at all + RequestHeader set X-Script-Name /radicale Require local @@ -143,7 +143,7 @@ - + RequestHeader set X-Script-Name /radicale @@ -221,7 +221,7 @@ CustomLog logs/ssl_request_log "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b" RewriteCond %{REQUEST_METHOD} GET RewriteRule ^/$ /.web/ [R,L] - + RequestHeader set X-Forwarded-Port "%{SERVER_PORT}s" RequestHeader set X-Forwarded-Proto expr=%{REQUEST_SCHEME} @@ -237,7 +237,7 @@ CustomLog logs/ssl_request_log "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b" - + RequestHeader set X-Forwarded-Port "%{SERVER_PORT}s" RequestHeader set X-Forwarded-Proto expr=%{REQUEST_SCHEME} @@ -292,7 +292,7 @@ CustomLog logs/ssl_request_log "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b" WSGIScriptAlias / /usr/share/radicale/radicale.wsgi - + ## User authentication handled by "radicale" Require local diff --git a/contrib/caddy/radicale.caddyfile b/contrib/caddy/radicale.caddyfile index b578b383..deaf558b 100644 --- a/contrib/caddy/radicale.caddyfile +++ b/contrib/caddy/radicale.caddyfile @@ -11,13 +11,13 @@ caldav.example.com { redir @get-root /.web/ - # Do not auth on /.web/* - @not-webui { - not path /.web/* + # Do not auth on /.web/* or /.token/* + @not-auth { + not path /.web/* /.token/* } # disable this in case authentication is handled by Radicale - basic_auth @not-webui { + basic_auth @not-auth { USER HASH }