houzhongjian
2024-11-22 49b510c77474fed0eff94e27f8d7a2d4e4cb7879
iailab-cloud/iailab-gateway/src/main/resources/application.yaml
@@ -115,11 +115,21 @@
            - Path=/admin-api/model/**
          filters:
            - RewritePath=/admin-api/model/v3/api-docs, /v3/api-docs
        ## shasteel 服务
        - id: shasteel-admin-api # 路由的编号
          uri: grayLb://shasteel-server
          predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组
            - Path=/admin-api/shasteel/**
          filters:
            - RewritePath=/admin-api/shasteel/v3/api-docs, /v3/api-docs
      x-forwarded:
        prefix-enabled: true # 避免 Swagger 重复带上额外的 /admin-api/system 前缀
server:
  port: 48080
  servlet:
    session:
      timeout: 120s
logging:
  file: