-
Notifications
You must be signed in to change notification settings - Fork 0
/
webdav.conf
47 lines (32 loc) · 1.48 KB
/
webdav.conf
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
37
38
39
40
41
42
43
44
45
46
47
server {
listen 127.0.0.1:443 ssl;
ssl_certificate /etc/nginx/ssl/nginx.crt;
ssl_certificate_key /etc/nginx/ssl/nginx.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers kEECDH+AESGCM+AES128:kEECDH+AES128:kRSA+AESGCM+AES128:kRSA+AES128:!RC4:!aNULL:!eNULL:!MD5:!EXPORT:!LOW:!SEED:!CAMELLIA:!IDEA:!PSK:!SRP:!SSLv2;
server_name webdav.local;
root /opt/mescedia/webdav/users ;
server_tokens off;
more_set_headers 'Server: mescedia-nginx';
add_header X-Frame-Options "DENY";
client_max_body_size 1M ;
send_timeout 3600s;
client_header_timeout 3600s;
client_body_timeout 3600s;
fastcgi_read_timeout 3600s;
location ~ ^/(.*)$ {
auth_pam "Restricted Area 51";
auth_pam_service_name "nginx";
alias /opt/mescedia/webdav/users/$remote_user/$1;
dav_methods PUT DELETE MKCOL COPY MOVE;
dav_ext_methods PROPFIND OPTIONS;
dav_access user:rw group:rw all:r;
client_max_body_size 0;
create_full_put_path on;
client_body_temp_path /tmp/;
autoindex on;
}
access_log /var/log/nginx/webdav_access.log main;
error_log /var/log/nginx/webdav_error.log;
}