forked from labfunctions/labfunctions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfileserver.conf
60 lines (46 loc) · 1.24 KB
/
fileserver.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
48
49
50
51
52
53
54
55
56
57
58
59
60
#daemon off; # docker
#worker_rlimit_nofile 100000;
worker_processes auto;
pcre_jit on;
error_log /dev/stderr;
# pid /usr/share/nginx/html/nginx.pid;
pid /tmp/nginx.pid;
events {
#use epoll;
multi_accept on;
accept_mutex off;
worker_connections 4096;
}
http {
sendfile on;
sendfile_max_chunk 1024k;
tcp_nopush on;
tcp_nodelay on;
open_file_cache off;
types_hash_max_size 2048;
server_tokens off;
default_type application/octet-stream;
# default_type application/json;
error_log /dev/stderr error; # docker
server {
# listen 4444 backlog=4096 ssl http2;
listen 4444;
server_name fileserver.local;
#ssl_certificate /etc/ssl/certs/fileserver.local.pem;
#ssl_certificate_key /etc/ssl/private/fileserver.local-key.pem;
location / {
root /usr/share/nginx/html;
disable_symlinks off;
client_body_temp_path /usr/share/nginx/html/body_temp;
client_max_body_size 0;
# this causes tests to fail
#client_body_buffer_size 0;
dav_methods PUT DELETE MKCOL COPY MOVE;
dav_access group:rw all:r;
create_full_put_path on;
# upload_set_form_field $upload_field_name.name "$upload_content_type";
autoindex on;
autoindex_format json;
}
}
}