-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx_backend.conf
79 lines (73 loc) · 2.87 KB
/
nginx_backend.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
location / {
root html;
index index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
server {
listen 80;
server_name qa.zhiyan.com;
location /{
try_files $uri /index.html;
alias /usr/share/nginx/html/dist/;
}
location /createData/ {
proxy_pass http://9.134.118.97:9997;
proxy_set_header Host $host;
proxy_redirect http://9.134.118.97:9997/ /createData;
client_max_body_size 100m;
client_body_buffer_size 10m;
proxy_connect_timeout 120;
proxy_send_timeout 1200;
proxy_read_timeout 1200;
}
location /interface/ {
proxy_pass http://9.134.118.97:5001;
proxy_set_header Host $host;
proxy_redirect http://9.134.118.97:5001/ /interface;
client_max_body_size 100m;
client_body_buffer_size 10m;
proxy_connect_timeout 120;
proxy_send_timeout 1200;
proxy_read_timeout 1200;
}
location /httpRunner/ {
proxy_pass http://9.134.84.69:5000;
proxy_set_header Host $host;
proxy_redirect http://9.134.84.69:5000/ /httpRunner;
client_max_body_size 100m;
client_body_buffer_size 10m;
proxy_connect_timeout 120;
proxy_send_timeout 1200;
proxy_read_timeout 1200;
}
location /webui/ {
proxy_pass http://9.134.118.97:9998;
proxy_set_header Host $host;
proxy_redirect http://9.134.118.97:9998/ /webui;
client_max_body_size 100m;
client_body_buffer_size 10m;
proxy_connect_timeout 120;
proxy_send_timeout 1200;
proxy_read_timeout 1200;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
include servers/*;
}