@dazhicheng/common 1.0.20 → 1.0.21

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/.env.development CHANGED
@@ -14,6 +14,10 @@ VITE_API_PROXY_URL_dev = http://192.168.128.215:11000
14
14
  VITE_API_MOCK = http://192.168.129.158:9998/mock/
15
15
  VITE_API_PROXY_URL_test = http://192.168.127.72:11000/
16
16
 
17
+ # 公网
18
+ VITE_API_PROXY_URL_DEV_DOMAIN = http://14.220.235.21:11000/
19
+ VITE_API_PROXY_URL_TEST_GW = http://116.6.49.180:11001/
20
+
17
21
  # 域名
18
22
  VITE_API_PROXY_URL_DEV_DOMAIN = http://fulfillment-dev.tiantai-jp.com:11000/
19
23
  VITE_API_PROXY_URL_TEST_DOMAIN = http://fulfillment-test.tiantai-jp.com:11000/
package/nginx_dev.conf CHANGED
@@ -1,3 +1,10 @@
1
+ # 自定义日志格式:包含实际转发的后端地址
2
+ log_format proxy_log
3
+ '[$time_local] $status $request ============================== '
4
+ 'client=$remote_addr upstream=$upstream_addr ============================== '
5
+ 'upstream_status=$upstream_status upstream_time=${upstream_response_time}s ============================== '
6
+ 'referer="$http_referer" agent="$http_user_agent"';
7
+
1
8
  # 根据请求Host分配后端地址(公网Host走公网,默认走内网)
2
9
  map $http_host $dev_backend_addr {
3
10
  default 192.168.128.215:11000; # 默认走内网
@@ -10,6 +17,9 @@ server {
10
17
  server_name localhost;
11
18
  charset utf-8;
12
19
 
20
+ # 使用自定义日志格式,记录后端转发地址
21
+ access_log /var/log/nginx/access.log proxy_log;
22
+
13
23
  root /usr/share/nginx/html;
14
24
  index index.html;
15
25
 
package/nginx_test.conf CHANGED
@@ -1,3 +1,10 @@
1
+ # 自定义日志格式:包含实际转发的后端地址
2
+ log_format proxy_log
3
+ '[$time_local] $status $request ============================== '
4
+ 'client=$remote_addr upstream=$upstream_addr ============================== '
5
+ 'upstream_status=$upstream_status upstream_time=${upstream_response_time}s ============================== '
6
+ 'referer="$http_referer" agent="$http_user_agent"';
7
+
1
8
  # 根据请求Host分配后端地址(公网Host走公网,默认走内网)
2
9
  map $http_host $test_backend_addr {
3
10
  default 192.168.127.72:11000; # 默认走内网
@@ -10,6 +17,9 @@ server {
10
17
  server_name localhost;
11
18
  charset utf-8;
12
19
 
20
+ # 使用自定义日志格式,记录后端转发地址
21
+ access_log /var/log/nginx/access.log proxy_log;
22
+
13
23
  root /usr/share/nginx/html;
14
24
  index index.html;
15
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dazhicheng/common",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "共享配置文件",
5
5
  "type": "module",
6
6
  "types": "./src/types/index.d.ts",