-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.yaml
More file actions
73 lines (63 loc) · 1.39 KB
/
Copy pathconfig.yaml
File metadata and controls
73 lines (63 loc) · 1.39 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
http{
client_header_timeout 2;
client_max_header_size 1MB;
# server {
# listen 0.0.0.0:8080;
# server_name api.localhost;
# internal_api on;
#}
server {
listen 0.0.0.0:8080;
server_name localhost;
client_max_body_size 200MB;
client_max_header_size 10000;
keepalive_timeout 20;
client_header_timeout 5;
client_body_timeout 20;
keepalive_requests 0;
cgi_timeout 20;
# Home page
location / {
root ./www;
index index.html;
autoindex off;
}
# Directory listing
location /list {
root ./www/list;
index test.html;
autoindex on;
}
# Gallery
location /upload {
root ./www/upload;
index index.html;
allowed_methods GET PUT DELETE POST;
cgi .py /usr/bin/python3;
}
location /dashboard {
root ./www/dashboard;
index index.html;
autoindex off;
}
# CGI scripts
location /cgi {
allowed_methods POST GET PUT DELETE;
root ./www/cgi;
autoindex on;
index list.py;
cgi .py /usr/bin/python3;
}
location /wordpress {
allowed_methods GET POST PUT DELETE HEAD OPTIONS;
root ./www/wordpress;
index index.php;
cgi .php /bin/php-cgi;
}
}
server {
listen 8080;
server_name api.localhost;
internal_api on;
}
}