self-hosted/webdav/webdav.conf

26 lines
484 B
Plaintext
Raw Normal View History

2022-02-04 05:53:18 +01:00
server {
listen 8080;
access_log /dev/stdout;
error_log /dev/stdout info;
client_max_body_size 0;
location / {
create_full_put_path on;
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
charset utf-8;
dav_methods PUT DELETE MKCOL COPY MOVE;
dav_access user:rw group:rw all:rw;
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/htpasswd;
root /share/;
}
}