diff options
Diffstat (limited to 'files/usr/local/etc/nginx/vhosts.conf.dav_server')
-rw-r--r-- | files/usr/local/etc/nginx/vhosts.conf.dav_server | 9 |
1 files changed, 9 insertions, 0 deletions
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; |