New paste: nginx_webdav.conf
This commit is contained in:
parent
c7a8810ee8
commit
fa000f73bb
28
nginx_webdav.conf
Normal file
28
nginx_webdav.conf
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
|
|
||||||
|
server_name dev.tj.priv.no;
|
||||||
|
root /var/www/webdav;
|
||||||
|
|
||||||
|
auth_basic realm_name;
|
||||||
|
# The file containing authorized users
|
||||||
|
auth_basic_user_file /etc/nginx/.passwords.list;
|
||||||
|
|
||||||
|
# dav allowed method
|
||||||
|
dav_methods PUT DELETE MKCOL COPY MOVE;
|
||||||
|
# Allow current scope perform specified DAV method
|
||||||
|
dav_ext_methods PROPFIND OPTIONS;
|
||||||
|
|
||||||
|
# In this folder, newly created folder or file is to have specified permission. If none is given, default is user:rw. If all or group permission is specified, user could be skipped
|
||||||
|
dav_access user:rw group:r all:r;
|
||||||
|
|
||||||
|
# Temporary folder
|
||||||
|
client_body_temp_path /tmp/nginx-client-bodies;
|
||||||
|
|
||||||
|
# MAX size of uploaded file, 0 mean unlimited
|
||||||
|
client_max_body_size 0;
|
||||||
|
|
||||||
|
# Allow autocreate folder here if necessary
|
||||||
|
create_full_put_path on;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user