@dazhicheng/common 1.0.28 → 1.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/nginx_test.conf +2 -1
- package/package.json +1 -1
package/nginx_test.conf
CHANGED
|
@@ -7,7 +7,7 @@ log_format proxy_log
|
|
|
7
7
|
|
|
8
8
|
# 根据请求IP分配后端地址(公网IP走公网,默认走内网)
|
|
9
9
|
map $host $test_backend_addr {
|
|
10
|
-
default 192.168.127.
|
|
10
|
+
default 192.168.127.73:11000; # 默认走内网
|
|
11
11
|
120.76.61.203 116.6.49.180:11001; # 公网IP走公网
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -36,6 +36,7 @@ server {
|
|
|
36
36
|
rewrite ^/test-api/(.*) /$1 break;
|
|
37
37
|
proxy_pass http://$test_backend_addr;
|
|
38
38
|
}
|
|
39
|
+
<<<其他location配置>>>
|
|
39
40
|
|
|
40
41
|
error_page 500 502 503 504 /50x.html;
|
|
41
42
|
location = /50x.html {
|