From 8aea85b97b044bf4f1d9c77f8cee74dee9e66eee Mon Sep 17 00:00:00 2001 From: Cullum Smith Date: Fri, 8 Nov 2024 19:09:57 -0500 Subject: thunderbird, dino --- files/usr/local/etc/nginx/vhosts.conf.dav_server | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'files/usr/local/etc/nginx') diff --git a/files/usr/local/etc/nginx/vhosts.conf.dav_server b/files/usr/local/etc/nginx/vhosts.conf.dav_server index 71bbc71..0c6e817 100644 --- a/files/usr/local/etc/nginx/vhosts.conf.dav_server +++ b/files/usr/local/etc/nginx/vhosts.conf.dav_server @@ -17,6 +17,7 @@ server { location / { auth_gss on; satisfy any; + auth_request /authenticate; $(printf ' deny %s;\n' $kerberized_cidrs) allow all; try_files \$uri \$uri/ /caldav.php\$uri?\$query_string; @@ -26,6 +27,13 @@ $(printf ' deny %s;\n' $kerberized_cidrs) try_files \$uri \$uri/ /caldav.php\$uri?\$query_string; } + location /authenticate { + if (\$http_user_agent ~ 'Thunderbird') { + return 200; + } + return 403; + } + location ~ ^/caldav\.php/\.well-known/ { fastcgi_split_path_info ^(.+?\.php)(/.*)$; if (!-f \$document_root\$fastcgi_script_name) { @@ -40,6 +48,7 @@ $(printf ' deny %s;\n' $kerberized_cidrs) location ~ [^/]\.php(/|$) { auth_gss on; satisfy any; + auth_request /authenticate; $(printf ' deny %s;\n' $kerberized_cidrs) allow all; -- cgit v1.2.3