From 65ae5ab362c53e609bafcad06049228b86b2d60f Mon Sep 17 00:00:00 2001
From: zendwang <63756+zendwang@user.noreply.gitee.com>
Date: 星期三, 29 三月 2023 22:18:42 +0800
Subject: [PATCH] !317 集成websocket功能 * add 增加 ruoyi-common-websocket 模块 支持token鉴权 支持分布式集群消息同步

---
 ruoyi-admin/src/main/resources/application.yml |   40 +++++++++++++++++++++++++++++-----------
 1 files changed, 29 insertions(+), 11 deletions(-)

diff --git a/ruoyi-admin/src/main/resources/application.yml b/ruoyi-admin/src/main/resources/application.yml
index 2f496b0..758b264 100644
--- a/ruoyi-admin/src/main/resources/application.yml
+++ b/ruoyi-admin/src/main/resources/application.yml
@@ -3,17 +3,16 @@
   # 鍚嶇О
   name: RuoYi-Vue-Plus
   # 鐗堟湰
-  version: ${ruoyi-vue-plus.version}
+  version: ${revision}
   # 鐗堟潈骞翠唤
   copyrightYear: 2022
   # 瀹炰緥婕旂ず寮�鍏�
   demoEnabled: true
   # 鑾峰彇ip鍦板潃寮�鍏�
   addressEnabled: true
-  # 缂撳瓨鎳掑姞杞�
-  cacheLazy: false
 
 captcha:
+  enable: true
   # 椤甸潰 <鍙傛暟璁剧疆> 鍙紑鍚叧闂� 楠岃瘉鐮佹牎楠�
   # 楠岃瘉鐮佺被鍨� math 鏁扮粍璁$畻 char 瀛楃楠岃瘉
   type: MATH
@@ -78,11 +77,6 @@
       max-file-size: 10MB
       # 璁剧疆鎬讳笂浼犵殑鏂囦欢澶у皬
       max-request-size: 20MB
-  # 鏈嶅姟妯″潡
-  devtools:
-    restart:
-      # 鐑儴缃插紑鍏�
-      enabled: true
   mvc:
     format:
       date-time: yyyy-MM-dd HH:mm:ss
@@ -128,13 +122,29 @@
     - /**/*.html
     - /**/*.css
     - /**/*.js
-    # swagger 鏂囨。閰嶇疆
+    # 鍏叡璺緞
     - /favicon.ico
+    - /error
+    # swagger 鏂囨。閰嶇疆
     - /*/api-docs
     - /*/api-docs/**
     # actuator 鐩戞帶閰嶇疆
     - /actuator
     - /actuator/**
+
+# 澶氱鎴烽厤缃�
+tenant:
+  # 鏄惁寮�鍚�
+  enable: true
+  # 鎺掗櫎琛�
+  excludes:
+    - sys_menu
+    - sys_tenant
+    - sys_tenant_package
+    - sys_role_dept
+    - sys_role_menu
+    - sys_user_post
+    - sys_user_role
 
 # MyBatisPlus閰嶇疆
 # https://baomidou.com/config/
@@ -198,7 +208,7 @@
 swagger:
   info:
     # 鏍囬
-    title: '鏍囬锛�${ruoyi.name}鍚庡彴绠$悊绯荤粺_鎺ュ彛鏂囨。'
+    title: '鏍囬锛�${ruoyi.name}澶氱鎴风鐞嗙郴缁焈鎺ュ彛鏂囨。'
     # 鎻忚堪
     description: '鎻忚堪锛氱敤浜庣鐞嗛泦鍥㈡棗涓嬪叕鍙哥殑浜哄憳淇℃伅,鍏蜂綋鍖呮嫭XXX,XXX妯″潡...'
     # 鐗堟湰
@@ -207,7 +217,7 @@
     contact:
       name: Lion Li
       email: crazylionli@163.com
-      url: https://gitee.com/JavaLionLi/RuoYi-Vue-Plus
+      url: https://gitee.com/dromara/RuoYi-Vue-Plus
   components:
     # 閴存潈鏂瑰紡閰嶇疆
     security-schemes:
@@ -270,3 +280,11 @@
       show-details: ALWAYS
     logfile:
       external-file: ./logs/sys-console.log
+
+--- # websocket
+websocket:
+  enabled: true
+  # 璺緞
+  path: /websocket
+  # 璁剧疆璁块棶婧愬湴鍧�
+  allowedOrigins: '*'

--
Gitblit v1.9.3