From db5cab715e0fac78feb081a1ad342b8b9bab2edb Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期三, 25 十二月 2024 18:38:45 +0800
Subject: [PATCH] 最新版本541200007

---
 server/system_gateway/src/main/resources/application.yml |   38 ++++++++++++++++++++++++++++----------
 1 files changed, 28 insertions(+), 10 deletions(-)

diff --git a/server/system_gateway/src/main/resources/application.yml b/server/system_gateway/src/main/resources/application.yml
index 076be11..79ba0b9 100644
--- a/server/system_gateway/src/main/resources/application.yml
+++ b/server/system_gateway/src/main/resources/application.yml
@@ -1,6 +1,6 @@
 # 椤圭洰淇℃伅閰嶇疆
 project:
-  name: 璁垮绯荤粺
+  name: 瀹夋嘲鐗╂祦璁垮绯荤粺
   version: 1.0.0
   env: development
 #  env: production
@@ -9,8 +9,8 @@
 spring:
   application:
     name: system_gateway
-  profiles:
-    active: dev
+#  profiles:
+#    active: dev
 
   # JSON杩斿洖閰嶇疆
   jackson:
@@ -25,6 +25,7 @@
       enabled: true
   main:
     allow-circular-references: true
+    web-application-type: reactive
 # MyBatis閰嶇疆
 mybatis-plus:
   mapper-locations: classpath*:/mappers/**/*.xml
@@ -36,7 +37,7 @@
 cache:
   session:
     # 浼氳瘽杩囨湡鏃堕暱(s)
-    expire: 18000
+    expire: 1800
   captcha:
     # 楠岃瘉鐮佽繃鏈熸椂闀�(s)
     expire: 300
@@ -57,12 +58,15 @@
   level:
     com.doumee.dao: debug
 
-knife4j:
-  enable: true
-  basic:
-    enable: true
-    username: admin
-    password: 111111
+auth:
+  jwt:
+    enabled: true   #鏄惁寮�鍚疛WT鐧诲綍璁よ瘉鍔熻兘
+    secret: fjkfaf;afa  # JWT绉侀挜锛岀敤浜庢牎楠孞WT浠ょ墝鐨勫悎娉曟��
+    expiration: 1800000 #JWT浠ょ墝鐨勬湁鏁堟湡锛岀敤浜庢牎楠孞WT浠ょ墝鐨勫悎娉曟��
+    header: JWTHeaderName #HTTP璇锋眰鐨凥eader鍚嶇О锛岃Header浣滀负鍙傛暟浼犻�扟WT浠ょ墝
+    userParamName: username  #鐢ㄦ埛鐧诲綍璁よ瘉鐢ㄦ埛鍚嶅弬鏁板悕绉�
+    pwdParamName: password  #鐢ㄦ埛鐧诲綍璁よ瘉瀵嗙爜鍙傛暟鍚嶇О
+    useDefaultController: true # 鏄惁浣跨敤榛樿鐨凧wtAuthController
 
 # WEB鏈嶅姟鍣ㄩ厤缃�
 server:
@@ -70,6 +74,7 @@
     enabled: true
     mime-types: application/json
   port: 10010
+
   tomcat:
     max-swallow-size: -1
   servlet:
@@ -77,3 +82,16 @@
       timeout: PT3H  #琛ㄧず12灏忔椂
 
 
+gateway:
+  loginFilterFolders:
+    - /login
+    - /biz/
+  skipLoginFilterUrls:
+    - /meetingAdmin/**
+    - /visitsAdmin/**
+    - /login
+    - /captcha
+    - /doc.html
+    - /v2/api-docs/**
+    - /**.js
+    - /**.html

--
Gitblit v1.9.3