From 4c1610ef55bd84c76997458e4218a92a81b912c4 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期四, 22 五月 2025 11:24:30 +0800
Subject: [PATCH] 修改web分布文件系统中文件显示与下载路径,采用统一配置方式
---
pms-parent/pms-global/src/main/resources/application-global.yml | 62 +++++++++++++++++--------------
1 files changed, 34 insertions(+), 28 deletions(-)
diff --git a/pms-parent/pms-global/src/main/resources/application-global.yml b/pms-parent/pms-global/src/main/resources/application-global.yml
index 490aa28..a106d72 100644
--- a/pms-parent/pms-global/src/main/resources/application-global.yml
+++ b/pms-parent/pms-global/src/main/resources/application-global.yml
@@ -1,10 +1,16 @@
pmsGl:
- #鏈満寮�鍙戠幆澧冿細192.168.40.80:3306
- #浜戞湇鍔�203锛� 127.0.0.1:63306
+ #鏈満寮�鍙戠幆澧冿細 127.0.0.1:3306
+ #娴嬭瘯鏈嶅姟鍣ㄥ紑鍙戠幆澧冿細 192.168.40.80:3306
+ #浜戞湇鍔�203锛� 127.0.0.1:63306
mySqlSvUrl: 192.168.40.80:3306
- #鏈満寮�鍙戠幆澧冿細E:/java/nginx-1.24.0/html/webfiles/
- #浜戞湇鍔�203锛� D:/apps/pms/nginx-1.24.0/html/webfiles/
+ #鏈満鍜屾祴璇曟湇鍔″櫒寮�鍙戠幆澧冿細 E:/java/nginx-1.24.0/html/webfiles/
+ #浜戞湇鍔�203锛� D:/apps/pms/nginx-1.24.0/html/webfiles/
webFileAbsolutePath: E:/java/nginx-1.24.0/html/webfiles/
+ #web鏂囦欢鏄剧ず涓庝笅杞絀P
+ #鏈満寮�鍙戠幆澧冿細 127.0.0.1
+ #娴嬭瘯鏈嶅姟鍣ㄥ紑鍙戠幆澧冿細 192.168.40.80
+ #浜戞湇鍔�203锛� 8.130.75.203
+ webFileIp4Client: 192.168.40.80
#杈撳嚭sql鏃ュ織寮�鍏筹紝鎺у埗PrintSqlInterceptor鎷︽埅鍣ㄦ槸鍚﹀姞杞�
showSqlLog: true
#鏄惁寮�鍙戦樁娈碉紝true鎴杅alse锛屽紑鍙戦樁娈典笉杩涜鐧诲綍楠岃瘉鍙婃潈闄愰獙璇�
@@ -142,8 +148,8 @@
hashStart: 0
hashEnd: 5461
restUrl: http://127.0.0.1:${pms.file1.webPort}/file #file鏄笂涓嬫枃,ip涓哄眬鍩熺綉ip鎴栨湰鍦癐P
- webUrl: http://127.0.0.1:${pms.nginx.webPort}/webfiles/ #nginx鏈嶅姟璺緞,瀹夎閮ㄧ讲鏃禝P鏀规垚澶栫綉IP鎴栧煙鍚�
- webDownloadPath: http://127.0.0.1:${pms.file1.webPort}/file/download/down?id= #瀹夎閮ㄧ讲鏃禝P鏀规垚澶栫綉IP鎴栧煙鍚�
+ webUrl: http://${pmsGl.webFileIp4Client}:${pms.nginx.webPort}/webfiles/ #nginx鏈嶅姟璺緞,瀹夎閮ㄧ讲鏃禝P鏀规垚澶栫綉IP鎴栧煙鍚�
+ webDownloadPath: http://${pmsGl.webFileIp4Client}:${pms.file1.webPort}/file/download/down?id= #瀹夎閮ㄧ讲鏃禝P鏀规垚澶栫綉IP鎴栧煙鍚�
sv2:
id: dyFile2
absolutePath: ${pmsGl.webFileAbsolutePath}
@@ -151,8 +157,8 @@
hashStart: 5462
hashEnd: 10923
restUrl: http://127.0.0.1:${pms.file2.webPort}/file
- webUrl: http://127.0.0.1:${pms.nginx.webPort}/webfiles/
- webDownloadPath: http://127.0.0.1:${pms.file2.webPort}/file/download/down?id=
+ webUrl: http://${pmsGl.webFileIp4Client}:${pms.nginx.webPort}/webfiles/
+ webDownloadPath: http://${pmsGl.webFileIp4Client}:${pms.file2.webPort}/file/download/down?id=
sv3:
id: dyFile3
absolutePath: ${pmsGl.webFileAbsolutePath}
@@ -160,8 +166,8 @@
hashStart: 10924
hashEnd: 16385
restUrl: http://127.0.0.1:${pms.file3.webPort}/file
- webUrl: http://127.0.0.1:${pms.nginx.webPort}/webfiles/
- webDownloadPath: http://127.0.0.1:${pms.file3.webPort}/file/download/down?id=
+ webUrl: http://${pmsGl.webFileIp4Client}:${pms.nginx.webPort}/webfiles/
+ webDownloadPath: http://${pmsGl.webFileIp4Client}:${pms.file3.webPort}/file/download/down?id=
sv4:
id: dyFile4
absolutePath: ${pmsGl.webFileAbsolutePath}
@@ -169,8 +175,8 @@
hashStart: 16386
hashEnd: 21847
restUrl: http://127.0.0.1:${pms.file4.webPort}/file
- webUrl: http://127.0.0.1:${pms.nginx.webPort}/webfiles/
- webDownloadPath: http://127.0.0.1:${pms.file4.webPort}/file/download/down?id=
+ webUrl: http://${pmsGl.webFileIp4Client}:${pms.nginx.webPort}/webfiles/
+ webDownloadPath: http://${pmsGl.webFileIp4Client}:${pms.file4.webPort}/file/download/down?id=
sv5:
id: dyFile5
absolutePath: ${pmsGl.webFileAbsolutePath}
@@ -178,8 +184,8 @@
hashStart: 21848
hashEnd: 27309
restUrl: http://127.0.0.1:${pms.file5.webPort}/file
- webUrl: http://127.0.0.1:${pms.nginx.webPort}/webfiles/
- webDownloadPath: http://127.0.0.1:${pms.file5.webPort}/file/download/down?id=
+ webUrl: http://${pmsGl.webFileIp4Client}:${pms.nginx.webPort}/webfiles/
+ webDownloadPath: http://${pmsGl.webFileIp4Client}:${pms.file5.webPort}/file/download/down?id=
sv6:
id: dyFile6
absolutePath: ${pmsGl.webFileAbsolutePath}
@@ -187,8 +193,8 @@
hashStart: 27310
hashEnd: 32767
restUrl: http://127.0.0.1:${pms.file6.webPort}/file
- webUrl: http://127.0.0.1:${pms.nginx.webPort}/webfiles/
- webDownloadPath: http://127.0.0.1:${pms.file6.webPort}/file/download/down?id=
+ webUrl: http://${pmsGl.webFileIp4Client}:${pms.nginx.webPort}/webfiles/
+ webDownloadPath: http://${pmsGl.webFileIp4Client}:${pms.file6.webPort}/file/download/down?id=
sv7:
id: dyFile7
absolutePath: ${pmsGl.webFileAbsolutePath}
@@ -196,8 +202,8 @@
hashStart: 32768
hashEnd: 38229
restUrl: http://127.0.0.1:${pms.file7.webPort}/file
- webUrl: http://127.0.0.1:${pms.nginx.webPort}/webfiles/
- webDownloadPath: http://127.0.0.1:${pms.file7.webPort}/file/download/down?id=
+ webUrl: http://${pmsGl.webFileIp4Client}:${pms.nginx.webPort}/webfiles/
+ webDownloadPath: http://${pmsGl.webFileIp4Client}:${pms.file7.webPort}/file/download/down?id=
sv8:
id: dyFile8
absolutePath: ${pmsGl.webFileAbsolutePath}
@@ -205,8 +211,8 @@
hashStart: 38230
hashEnd: 43691
restUrl: http://127.0.0.1:${pms.file8.webPort}/file
- webUrl: http://127.0.0.1:${pms.nginx.webPort}/webfiles/
- webDownloadPath: http://127.0.0.1:${pms.file8.webPort}/file/download/down?id=
+ webUrl: http://${pmsGl.webFileIp4Client}:${pms.nginx.webPort}/webfiles/
+ webDownloadPath: http://${pmsGl.webFileIp4Client}:${pms.file8.webPort}/file/download/down?id=
sv9:
id: dyFile9
absolutePath: ${pmsGl.webFileAbsolutePath}
@@ -214,8 +220,8 @@
hashStart: 43692
hashEnd: 49153
restUrl: http://127.0.0.1:${pms.file9.webPort}/file
- webUrl: http://127.0.0.1:${pms.nginx.webPort}/webfiles/
- webDownloadPath: http://127.0.0.1:${pms.file9.webPort}/file/download/down?id=
+ webUrl: http://${pmsGl.webFileIp4Client}:${pms.nginx.webPort}/webfiles/
+ webDownloadPath: http://${pmsGl.webFileIp4Client}:${pms.file9.webPort}/file/download/down?id=
sv10:
id: dyFile10
absolutePath: ${pmsGl.webFileAbsolutePath}
@@ -223,8 +229,8 @@
hashStart: 49154
hashEnd: 54615
restUrl: http://127.0.0.1:${pms.file10.webPort}/file
- webUrl: http://127.0.0.1:${pms.nginx.webPort}/webfiles/
- webDownloadPath: http://127.0.0.1:${pms.file10.webPort}/file/download/down?id=
+ webUrl: http://${pmsGl.webFileIp4Client}:${pms.nginx.webPort}/webfiles/
+ webDownloadPath: http://${pmsGl.webFileIp4Client}:${pms.file10.webPort}/file/download/down?id=
sv11:
id: dyFile11
absolutePath: ${pmsGl.webFileAbsolutePath}
@@ -232,8 +238,8 @@
hashStart: 54616
hashEnd: 60077
restUrl: http://127.0.0.1:${pms.file11.webPort}/file
- webUrl: http://127.0.0.1:${pms.nginx.webPort}/webfiles/
- webDownloadPath: http://127.0.0.1:${pms.file11.webPort}/file/download/down?id=
+ webUrl: http://${pmsGl.webFileIp4Client}:${pms.nginx.webPort}/webfiles/
+ webDownloadPath: http://${pmsGl.webFileIp4Client}:${pms.file11.webPort}/file/download/down?id=
sv12:
id: dyFile12
absolutePath: ${pmsGl.webFileAbsolutePath}
@@ -241,5 +247,5 @@
hashStart: 60078
hashEnd: 65535
restUrl: http://127.0.0.1:${pms.file12.webPort}/file
- webUrl: http://127.0.0.1:${pms.nginx.webPort}/webfiles/
- webDownloadPath: http://127.0.0.1:${pms.file12.webPort}/file/download/down?id=
+ webUrl: http://${pmsGl.webFileIp4Client}:${pms.nginx.webPort}/webfiles/
+ webDownloadPath: http://${pmsGl.webFileIp4Client}:${pms.file12.webPort}/file/download/down?id=
--
Gitblit v1.8.0