aboutsummaryrefslogtreecommitdiff
path: root/files/usr/local/etc/nginx/vhosts.conf.dav_server
diff options
context:
space:
mode:
authorCullum Smith <cullum@sacredheartsc.com>2024-11-08 19:09:57 -0500
committerCullum Smith <cullum@sacredheartsc.com>2024-11-08 19:09:57 -0500
commit8aea85b97b044bf4f1d9c77f8cee74dee9e66eee (patch)
tree22d19db21ba10a0a603129d5ea85e1a64f41eeae /files/usr/local/etc/nginx/vhosts.conf.dav_server
parent326caed19786670770e856fb48939069ea671050 (diff)
downloadinfrastructure-8aea85b97b044bf4f1d9c77f8cee74dee9e66eee.tar.gz
thunderbird, dino
Diffstat (limited to 'files/usr/local/etc/nginx/vhosts.conf.dav_server')
-rw-r--r--files/usr/local/etc/nginx/vhosts.conf.dav_server9
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;