aboutsummaryrefslogtreecommitdiff
path: root/files/usr/local/etc/nginx/vhosts.conf.dav_server
diff options
context:
space:
mode:
authorCullum Smith <cullum@sacredheartsc.com>2024-12-16 20:35:26 -0500
committerCullum Smith <cullum@sacredheartsc.com>2024-12-16 20:35:26 -0500
commitffccdc6b85680489a0881e1af80edb4f67361709 (patch)
tree4c087502c74b030bd8f2bf54291691246a0c1af7 /files/usr/local/etc/nginx/vhosts.conf.dav_server
parent62bf72f6824885744ab4f9b33101218be5d39206 (diff)
downloadinfrastructure-ffccdc6b85680489a0881e1af80edb4f67361709.tar.gz
add webdav to dav_server role
Diffstat (limited to 'files/usr/local/etc/nginx/vhosts.conf.dav_server')
-rw-r--r--files/usr/local/etc/nginx/vhosts.conf.dav_server12
1 files changed, 12 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 0c6e817..8e73d13 100644
--- a/files/usr/local/etc/nginx/vhosts.conf.dav_server
+++ b/files/usr/local/etc/nginx/vhosts.conf.dav_server
@@ -14,6 +14,8 @@ server {
auth_gss_keytab ${davical_keytab};
auth_gss_allow_basic_fallback off;
+ client_max_body_size ${webdav_upload_sizelimit};
+
location / {
auth_gss on;
satisfy any;
@@ -34,6 +36,16 @@ $(printf ' deny %s;\n' $kerberized_cidrs)
return 403;
}
+ location ~ ^/webdav($|/(?<dav_path>.*)$) {
+ auth_gss on;
+ auth_gss_allow_basic_fallback on;
+ alias ${webdav_dir}/\$remote_user/\$dav_path;
+ create_full_put_path on;
+ dav_methods PUT DELETE MKCOL COPY MOVE;
+ dav_ext_methods PROPFIND OPTIONS;
+ autoindex on;
+ }
+
location ~ ^/caldav\.php/\.well-known/ {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
if (!-f \$document_root\$fastcgi_script_name) {