From fa000f73bb7fdcb00a3e457df10a0ad870eff857 Mon Sep 17 00:00:00 2001 From: Thomas Jensen Date: Fri, 1 May 2020 22:04:02 +0200 Subject: [PATCH] New paste: nginx_webdav.conf --- nginx_webdav.conf | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 nginx_webdav.conf diff --git a/nginx_webdav.conf b/nginx_webdav.conf new file mode 100644 index 0000000..2b37738 --- /dev/null +++ b/nginx_webdav.conf @@ -0,0 +1,28 @@ +server { + listen 80; + listen [::]:80; + + server_name dev.tj.priv.no; + root /var/www/webdav; + + auth_basic realm_name; + # The file containing authorized users + auth_basic_user_file /etc/nginx/.passwords.list; + + # dav allowed method + dav_methods PUT DELETE MKCOL COPY MOVE; + # Allow current scope perform specified DAV method + dav_ext_methods PROPFIND OPTIONS; + + # In this folder, newly created folder or file is to have specified permission. If none is given, default is user:rw. If all or group permission is specified, user could be skipped + dav_access user:rw group:r all:r; + + # Temporary folder + client_body_temp_path /tmp/nginx-client-bodies; + + # MAX size of uploaded file, 0 mean unlimited + client_max_body_size 0; + + # Allow autocreate folder here if necessary + create_full_put_path on; +}