From 8ff4438f826b9e0029dfbf5d20660d6c6fc6e43e Mon Sep 17 00:00:00 2001 From: Pelagic Date: Thu, 11 Apr 2024 19:55:51 +0300 Subject: [PATCH] Added more stuff in README.md --- README.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 17b0479..b21fd7a 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,27 @@ TODO webdav apis with an htpasswd file through nginx basic authentication TODO webdav apis with database managed through django # Building -TODO +After cloning this repository in $gitdir clone the nginx source code in $gitdir/nginx +cd $gitdir/nginx +./configure --add-dynamic-module=../../nginx-sf-webdav-module/' --with-compat +make +then the module is in $gitdir/nginx/objs/ngx_http_webdav_module.so +to compile the module statically just replace --add-dynamic-module with --add-module + +# Requirements + +- nginx version >= 1.13.4 + +- libxml2 + libxslt + +The libxslt library is technically redundant and is only required since this combination is supported by nginx for the xslt module. Using builtin nginx mechanisms for linking against third-party libraries brings certain compatibility benefits. However this redundancy can be easily eliminated in the config file. + +# Locking + +- Only the exclusive write locks are supported, which is the only type of locks described in the WebDAV specification. + +- All currently held locks are kept in a list. Checking if an object is constrained by a lock requires O(n) operations. A huge number of simultaneously held locks may degrade performance. Thus it is not recommended to have a large lock timeout which would increase the number of locks. + # Testing TODO