diff options
Diffstat (limited to 'files/usr/local/etc/nginx')
-rw-r--r-- | files/usr/local/etc/nginx/nginx.conf.common | 3 | ||||
-rw-r--r-- | files/usr/local/etc/nginx/vhosts.conf.dav_server | 12 |
2 files changed, 14 insertions, 1 deletions
diff --git a/files/usr/local/etc/nginx/nginx.conf.common b/files/usr/local/etc/nginx/nginx.conf.common index 59a4c43..6ed42fa 100644 --- a/files/usr/local/etc/nginx/nginx.conf.common +++ b/files/usr/local/etc/nginx/nginx.conf.common @@ -1,6 +1,7 @@ worker_processes ${nginx_worker_processes}; worker_rlimit_nofile ${nginx_nofile}; -$([ "${nginx_gssapi:-}" = true ] && echo 'load_module "/usr/local/libexec/nginx/ngx_http_auth_spnego_module.so";') +$([ "${nginx_gssapi:-}" = true ] && echo 'load_module "/usr/local/libexec/nginx/ngx_http_auth_spnego_module.so";') +$([ "${nginx_dav_ext:-}" = true ] && echo 'load_module "/usr/local/libexec/nginx/ngx_http_dav_ext_module.so";') events { worker_connections ${nginx_worker_connections}; 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) { |