-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathconfig.json
52 lines (52 loc) · 1.54 KB
/
config.json
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
{
"error_log": "/dev/fd/2",
"pid": "/var/run/nginx.pid",
"user": "nginx",
"worker_processes": "auto",
"worker_rlimit_nofile": "100000",
"events": {
"multi_accept": "on",
"use": "epoll",
"worker_connections": "8192"
},
"http": {
"access_log": "/dev/fd/1",
"default_type": "application/octet-stream",
"gzip": "on",
"gzip_buffers": "16 8k",
"gzip_comp_level": "4",
"gzip_proxied": "off",
"gzip_types": "application/json",
"gzip_vary": "on",
"include": "/etc/nginx/mime.types",
"index": "index.html index.htm",
"keepalive_timeout": "120",
"proxy_cache_path": "/var/cache/nginx levels=1:2 keys_zone=one:8m max_size=3000m inactive=600m",
"proxy_temp_path": "/var/tmp",
"sendfile": "on",
"server_tokens": "off",
"tcp_nopush": "on",
"server": {
"httpd": {
"listen": "80",
"server_name": "apache.sample.com",
"charset": "utf-8",
"location": {
"image": {
"expression": "^/image",
"proxy_pass": "http://httpd/",
"proxy_set_header": "{\"X-Real-IP\": \"$remote_addr\", \"X-Forwarded-For\": \"$proxy_add_x_forwarded_for\", \"X-Forwarded-Proto\": \"$scheme\", \"Host\": \"$host\"}",
"if": "{\"$request_method = POST\": \"return 403\"}"
}
},
"upstream": {
"keepalive": "64"
}
},
"nginx": {
"listen": "80",
"server_name": "nginx.sample.com"
}
}
}
}