forked from sashgorokhov/docker-nginx-webdav
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebdav.conf
More file actions
36 lines (26 loc) · 688 Bytes
/
Copy pathwebdav.conf
File metadata and controls
36 lines (26 loc) · 688 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
server {
listen 80;
access_log /dev/stdout;
error_log /dev/stdout info;
client_max_body_size 0;
location /write {
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_ext_methods PROPFIND OPTIONS;
dav_access user:rw group:rw all:rw;
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/htpasswd;
alias /media/;
}
location / {
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
charset utf-8;
root /media/;
}
}