From ccf69ee82f77a2e67a565cec02f95e64324a283f Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期三, 15 五月 2024 09:16:48 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 server/system_gateway/src/main/resources/bootstrap.yml |   64 ++++++++++++++++++++++++++++++-
 1 files changed, 61 insertions(+), 3 deletions(-)

diff --git a/server/system_gateway/src/main/resources/bootstrap.yml b/server/system_gateway/src/main/resources/bootstrap.yml
index d6bacc9..69895a9 100644
--- a/server/system_gateway/src/main/resources/bootstrap.yml
+++ b/server/system_gateway/src/main/resources/bootstrap.yml
@@ -1,6 +1,12 @@
 spring:
   application:
     name: system_gateway
+  # 瀹夊叏閰嶇疆
+  security:
+    # 楠岀鍏挜鍦板潃
+    oauth2:
+      authorizationserver:
+        token-uri: https://
   cloud:
     nacos:
       server-addr: http://175.27.187.84:8848 #閰嶇疆Nacos鍦板潃
@@ -20,24 +26,76 @@
           lower-case-service-id: true
       routes:
         - id: meetingAdmin
+          name: 浼氳瀹ゅ井鏈嶅姟
           uri: lb://meetingAdmin
-#          uri: http://localhost:10013
           # 鏂█,璺緞鐩稿尮閰嶇殑杩涜璺敱
           predicates:
             - Path=/meetingAdmin/**
           filters:
+            - SwaggerHeaderFilter
             - StripPrefix=1
-
         - id: visitsAdmin
           uri: lb://visitsAdmin
-#          uri: http://localhost:10028
+          name: 璁垮绯荤粺寰湇鍔�
           # 鏂█,璺緞鐩稿尮閰嶇殑杩涜璺敱
           predicates:
             - Path=/visitsAdmin/**
           filters:
+            - SwaggerHeaderFilter
+            - StripPrefix=1
+        - id: systemTimer
+          uri: lb://systemTimer
+          name: 瀹氭椂浠诲姟寰湇鍔�
+          # 鏂█,璺緞鐩稿尮閰嶇殑杩涜璺敱
+          predicates:
+            - Path=/systemTimer/**
+          filters:
+            - SwaggerHeaderFilter
             - StripPrefix=1
 management:
   endpoints:
     web:
       exposure:
         include: "*"
+
+
+knife4j:
+  # 鑱氬悎swagger鏂囨。
+  gateway:
+    # 绗竴涓厤缃紝寮�鍚痝ateway鑱氬悎缁勪欢
+    enabled: true
+    # 绗簩琛岄厤缃紝璁剧疆鑱氬悎妯″紡閲囩敤discover鏈嶅姟鍙戠幇鐨勬ā寮�
+    strategy: discover
+    # 鏈嶅姟鍙戠幇妯″紡鐨勯厤缃�
+    discover:
+      # 绗笁琛岄厤缃紝寮�鍚痙iscover妯″紡
+      enabled: true
+      # 鑱氬悎鎵�鏈夊瓙鏈嶅姟(swagger2瑙勮寖)锛屽瓙鏈嶅姟鏄�3瑙勮寖鍒欐浛鎹负openapi3
+      version: swagger2
+      # 闇�瑕佹帓闄ょ殑寰湇鍔�(eg:缃戝叧鏈嶅姟)
+      excluded-services:
+        - gateway-service
+
+# Api鏂囨。淇℃伅
+# springdoc-openapi 椤圭洰閰嶇疆
+springdoc:
+  swagger-ui:
+    path: /doc.html
+    tags-sorter: alpha
+    operations-sorter: alpha
+  api-docs:
+    path: /v2/api-docs
+  group-configs:
+    - group: 'default'
+      paths-to-match: '/**'
+  info:
+    title: ${spring.application.name} - API
+    version: 3.0.0
+    description: 鎺ュ彛鏂囨。
+    contact:
+      name: 1
+      url: 1
+      email: 1
+    license:
+      name: Apache 2.0
+      url: https://www.apache.org/licenses/LICENSE-2.0.html

--
Gitblit v1.9.3