blob: 62d27cbbc652f881a375b78032745f2b060ab7d3 (
plain)
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
|
master_process on;
worker_rlimit_nofile 10240;
worker_processes 2;
daemon off;
error_log /tmp/nginx/{{.LogPrefix}}-error.log info;
events {
use epoll;
worker_connections 10240;
accept_mutex off;
multi_accept off;
}
http {
keepalive_timeout 300s;
keepalive_requests 1000000;
sendfile on;
server {
access_log /tmp/nginx/{{.LogPrefix}}-access.log;
listen {{.Port}};
server_name {{.Address}};
root /usr/share/nginx;
index index.html index.htm;
location ~ "/upload/([0-9a-zA-Z-.]*)$" {
alias /usr/share/nginx/upload/$1;
client_body_temp_path /tmp;
client_max_body_size 200M;
dav_methods PUT;
create_full_put_path off;
dav_access all:rw;
}
location /64B {
return 200 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
}
location / {
sendfile on;
}
}
}
|