2022-02-20 09:53:45 +01:00
|
|
|
worker_processes 1;
|
2022-02-04 05:53:18 +01:00
|
|
|
|
2022-02-20 09:53:45 +01:00
|
|
|
events {
|
|
|
|
worker_connections 1024;
|
|
|
|
}
|
|
|
|
|
|
|
|
http {
|
|
|
|
include mime.types;
|
|
|
|
default_type application/octet-stream;
|
|
|
|
server {
|
|
|
|
listen 8080;
|
2022-02-04 05:53:18 +01:00
|
|
|
|
2022-02-20 09:53:45 +01:00
|
|
|
access_log /dev/stdout;
|
|
|
|
error_log /dev/stdout info;
|
2022-02-04 05:53:18 +01:00
|
|
|
|
2022-02-20 09:53:45 +01:00
|
|
|
client_max_body_size 0;
|
2022-02-04 05:53:18 +01:00
|
|
|
|
2022-02-20 09:53:45 +01:00
|
|
|
location / {
|
|
|
|
root /share;
|
2022-02-04 05:53:18 +01:00
|
|
|
|
2022-02-20 09:53:45 +01:00
|
|
|
create_full_put_path on;
|
|
|
|
autoindex on;
|
|
|
|
autoindex_exact_size off;
|
|
|
|
autoindex_localtime on;
|
|
|
|
charset utf-8;
|
2022-02-04 05:53:18 +01:00
|
|
|
|
2022-02-20 09:53:45 +01:00
|
|
|
dav_methods PUT DELETE MKCOL COPY MOVE;
|
|
|
|
dav_ext_methods PROPFIND OPTIONS;
|
|
|
|
dav_access user:rw group:rw all:r;
|
2022-02-04 05:53:18 +01:00
|
|
|
|
2022-02-20 09:53:45 +01:00
|
|
|
auth_basic "Restricted Content";
|
|
|
|
auth_basic_user_file /opt/nginx/conf/.htpasswd;
|
|
|
|
}
|
2022-02-04 05:53:18 +01:00
|
|
|
}
|
|
|
|
}
|