From 1300e2434cb457e7d4d06ea66d90a04492f6c4e9 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期二, 23 四月 2024 14:22:09 +0800
Subject: [PATCH] 1、完善系统架构,增加了分布式web文件模块

---
 pms-parent/pms-global/src/main/resources/application-global.yml |  151 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 149 insertions(+), 2 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 8c25880..bf9e58b 100644
--- a/pms-parent/pms-global/src/main/resources/application-global.yml
+++ b/pms-parent/pms-global/src/main/resources/application-global.yml
@@ -1,3 +1,9 @@
+spring:
+    servlet:
+        multipart:
+            # 鍓嶇涓婁紶鏂囦欢锛岄檺鍒跺崟涓枃浠剁殑澶у皬鍜岄檺鍒舵墍鏈夋枃浠剁殑澶у皬
+            max-file-size: 1MB
+            max-request-size: 10MB
 logging:
     charset:
         console: UTF-8
@@ -36,12 +42,15 @@
         lazy-load-trigger-methods: ""  # 闃绘尅涓嶇浉骞茬殑鎿嶄綔瑙﹀彂锛屽疄鐜版噿鍔犺浇
         cache-enabled: true  #鎵撳紑鍏ㄥ眬缂撳瓨寮�鍏筹紙浜岀骇鐜锛夛紝榛樿鍊兼槸true
         #default-enum-type-handler: com.dy.common.mybatis.envm.EnumCodeTypeHandler
+
 pms:
     global:
         dev: true   #鏄惁寮�鍙戦樁娈碉紝true鎴杅alse锛屽紑鍙戦樁娈典笉杩涜鐧诲綍楠岃瘉鍙婃潈闄愰獙璇�
         ssoUserExpireAfterAccess: 60  #sso鐧诲綍鍚庯紝鐢ㄦ埛鍦ㄤ竴瀹氭椂闂达紙ssoUserExpireAfterAccess锛夛紙鍒嗛挓锛夊唴鏈闂郴缁燂紝绯荤粺娓呴櫎缂撳瓨淇℃伅锛屼娇鐢ㄩ噸鏂扮櫥褰曠郴缁�
         ssoCacheSizeInit: 10  #sso缂撳瓨鍒濆瀹归噺
         ssoCacheSizeMax: 10000  #sso缂撳瓨鏈�澶у閲忥紝鍗虫敮鎸乻soCacheSizeMax涓敤鎴峰悓鏃剁櫥褰�
+    nginx:
+        webPort: 8000
     sso:
         checkUrl: http://127.0.0.1:12344/sso/sso/ssoCheck
         webPort: 12344
@@ -58,6 +67,144 @@
     other:
         webPort: 12348
         idSuffix: 5
+
     file:
-        webPort: 12349
-        idSuffix: 6
+        idSuffix: 99
+    file1:
+        webPort: 12380
+    file2:
+        webPort: 12380
+    file3:
+        webPort: 12380
+    file4:
+        webPort: 12380
+    file5:
+        webPort: 12380
+    file6:
+        webPort: 12380
+    file7:
+        webPort: 12380
+    file8:
+        webPort: 12380
+    file9:
+        webPort: 12380
+    file10:
+        webPort: 12380
+    file11:
+        webPort: 12380
+    file12:
+        webPort: 12380
+
+#web鍒嗗竷寮忔枃浠剁郴缁�
+dy:
+    photoZipWidth: 400 #缂╃暐鍥惧昂瀵�
+    webFile:
+        fmUrl: http://127.0.0.1:${pms.other.webPort}/other # fm鐨剋eb涓婁笅鏂� URL
+        sv1:
+            id: dyFile1
+            absolutePath: E:/java/nginx-1.24.0/html/webfiles/
+            relativePath: webFile1
+            hashStart: 0
+            hashEnd: 5461
+            restUrl: http://127.0.0.1:${pms.file1.webPort}/file #file鏄笂涓嬫枃
+            webUrl: http://127.0.0.1:${pms.nginx.webPort}/webfiles/ #nginx鏈嶅姟璺緞
+            webDownloadUrl: http://127.0.0.1:${pms.file1.webPort}/file/download/down
+        sv2:
+            id: dyFile2
+            absolutePath: E:/java/nginx-1.24.0/html/webfiles/
+            relativePath: webFile2
+            hashStart: 5462
+            hashEnd: 10923
+            restUrl: http://127.0.0.1:${pms.file2.webPort}/file
+            webUrl: http://127.0.0.1:${pms.nginx.webPort}/webfiles/
+            webDownloadUrl: http://127.0.0.1:${pms.file2.webPort}/file/download/down
+        sv3:
+            id: dyFile3
+            absolutePath: E:/java/nginx-1.24.0/html/webfiles/
+            relativePath: webFile3
+            hashStart: 10924
+            hashEnd: 16385
+            restUrl: http://127.0.0.1:${pms.file3.webPort}/file
+            webUrl: http://127.0.0.1:${pms.nginx.webPort}/webfiles/
+            webDownloadUrl: http://127.0.0.1:${pms.file3.webPort}/file/download/down
+        sv4:
+            id: dyFile4
+            absolutePath: E:/java/nginx-1.24.0/html/webfiles/
+            relativePath: webFile4
+            hashStart: 16386
+            hashEnd: 21847
+            restUrl: http://127.0.0.1:${pms.file4.webPort}/file
+            webUrl: http://127.0.0.1:${pms.nginx.webPort}/webfiles/
+            webDownloadUrl: http://127.0.0.1:${pms.file4.webPort}/file/download/down
+        sv5:
+            id: dyFile5
+            absolutePath: E:/java/nginx-1.24.0/html/webfiles/
+            relativePath: webFile5
+            hashStart: 21848
+            hashEnd: 27309
+            restUrl: http://127.0.0.1:${pms.file5.webPort}/file
+            webUrl: http://127.0.0.1:${pms.nginx.webPort}/webfiles/
+            webDownloadUrl: http://127.0.0.1:${pms.file5.webPort}/file/download/down
+        sv6:
+            id: dyFile6
+            absolutePath: E:/java/nginx-1.24.0/html/webfiles/
+            relativePath: webFile6
+            hashStart: 27310
+            hashEnd: 32767
+            restUrl: http://127.0.0.1:${pms.file6.webPort}/file
+            webUrl: http://127.0.0.1:${pms.nginx.webPort}/webfiles/
+            webDownloadUrl: http://127.0.0.1:${pms.file6.webPort}/file/download/down
+        sv7:
+            id: dyFile7
+            absolutePath: E:/java/nginx-1.24.0/html/webfiles/
+            relativePath: webFile7
+            hashStart: 32768
+            hashEnd: 38229
+            restUrl: http://127.0.0.1:${pms.file7.webPort}/file
+            webUrl: http://127.0.0.1:${pms.nginx.webPort}/webfiles/
+            webDownloadUrl: http://127.0.0.1:${pms.file7.webPort}/file/download/down
+        sv8:
+            id: dyFile8
+            absolutePath: E:/java/nginx-1.24.0/html/webfiles/
+            relativePath: webFile8
+            hashStart: 38230
+            hashEnd: 43691
+            restUrl: http://127.0.0.1:${pms.file8.webPort}/file
+            webUrl: http://127.0.0.1:${pms.nginx.webPort}/webfiles/
+            webDownloadUrl: http://127.0.0.1:${pms.file8.webPort}/file/download/down
+        sv9:
+            id: dyFile9
+            absolutePath: E:/java/nginx-1.24.0/html/webfiles/
+            relativePath: webFile9
+            hashStart: 43692
+            hashEnd: 49153
+            restUrl: http://127.0.0.1:${pms.file9.webPort}/file
+            webUrl: http://127.0.0.1:${pms.nginx.webPort}/webfiles/
+            webDownloadUrl: http://127.0.0.1:${pms.file9.webPort}/file/download/down
+        sv10:
+            id: dyFile10
+            absolutePath: E:/java/nginx-1.24.0/html/webfiles/
+            relativePath: webFile10
+            hashStart: 49154
+            hashEnd: 54615
+            restUrl: http://127.0.0.1:${pms.file10.webPort}/file
+            webUrl: http://127.0.0.1:${pms.nginx.webPort}/webfiles/
+            webDownloadUrl: http://127.0.0.1:${pms.file10.webPort}/file/download/down
+        sv11:
+            id: dyFile11
+            absolutePath: E:/java/nginx-1.24.0/html/webfiles/
+            relativePath: webFile11
+            hashStart: 54616
+            hashEnd: 60077
+            restUrl: http://127.0.0.1:${pms.file11.webPort}/file
+            webUrl: http://127.0.0.1:${pms.nginx.webPort}/webfiles/
+            webDownloadUrl: http://127.0.0.1:${pms.file11.webPort}/file/download/down
+        sv12:
+            id: dyFile12
+            absolutePath: E:/java/nginx-1.24.0/html/webfiles/
+            relativePath: webFile12
+            hashStart: 60078
+            hashEnd: 65535
+            restUrl: http://127.0.0.1:${pms.file12.webPort}/file
+            webUrl: http://127.0.0.1:${pms.nginx.webPort}/webfiles/
+            webDownloadUrl: http://127.0.0.1:${pms.file12.webPort}/file/download/down

--
Gitblit v1.8.0