mirror of
https://github.com/atareao/self-hosted.git
synced 2024-07-06 22:12:15 +02:00
26 lines
484 B
Plaintext
26 lines
484 B
Plaintext
|
|
||
|
server {
|
||
|
listen 8080;
|
||
|
|
||
|
access_log /dev/stdout;
|
||
|
error_log /dev/stdout info;
|
||
|
|
||
|
client_max_body_size 0;
|
||
|
|
||
|
location / {
|
||
|
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_access user:rw group:rw all:rw;
|
||
|
|
||
|
auth_basic "Restricted";
|
||
|
auth_basic_user_file /etc/nginx/htpasswd;
|
||
|
|
||
|
root /share/;
|
||
|
}
|
||
|
}
|