docker-webdav-nginx/webdav.conf
2023-06-19 15:14:01 -04:00

36 lines
800 B
Plaintext

server {
listen 80 default_server;
server_name _;
root /var/www/webdav;
autoindex on;
client_max_body_size 250M;
location /public {
dav_methods PUT DELETE MKCOL COPY MOVE;
dav_ext_methods PROPFIND OPTIONS;
dav_access user:rw group:rw;
create_full_put_path on;
error_log /dev/stdout;
access_log /dev/stdout;
}
location /restricted {
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/webdav_credentials;
dav_methods PUT DELETE MKCOL COPY MOVE;
dav_ext_methods PROPFIND OPTIONS;
dav_access user:rw group:rw;
create_full_put_path on;
error_log /dev/stdout;
access_log /dev/stdout;
}
}