2022-04-02 18:32:22 +00:00
|
|
|
server {
|
|
|
|
listen 80 default_server;
|
|
|
|
server_name _;
|
|
|
|
|
|
|
|
root /var/www/webdav;
|
|
|
|
autoindex on;
|
|
|
|
|
2023-06-19 19:14:01 +00:00
|
|
|
client_max_body_size 250M;
|
|
|
|
|
2022-04-02 18:32:22 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|