Files
hsl-cloud/script/config/nacos/seewis-gateway.yml
T
seewe 93d3e71e0b refactor(modules): rename modules and externalize config / 重命名模块并外置配置
Rename Maven modules and directories to seewis-* while preserving Java package paths. Allow Nacos and Logstash settings from environment variables or Maven -D overrides, and include the existing agent documentation updates.
2026-09-01 15:04:46 +08:00

108 lines
3.1 KiB
YAML

# 安全配置
security:
# 不校验白名单
ignore:
whites:
- /auth/code
- /auth/logout
- /auth/login
- /auth/binding/*
- /auth/register
- /auth/tenant/list
- /resource/sms/code
- /resource/message/close
- /*/v3/api-docs
- /*/error
- /csrf
- /warm-flow-ui/**
- /snail-chat/**
- /api/snail/chat/**
spring:
cloud:
gateway:
# 打印请求日志(自定义)
requestLog: true
# Gateway MVC 转发使用的 HttpClient5 连接池配置
httpclient:
# 总最大连接数
max-conn-total: 1000
# 单个下游路由最大连接数,SSE 长连接较多时需按并发量调整
max-conn-per-route: 500
# 连接池满时等待可用连接的时间
connection-request-timeout: 3s
# SSE 场景通常不设置响应超时,避免长连接被网关主动断开
# response-timeout: 60s
# 连接最大存活时间,不配置则使用 HttpClient5 默认值
# connection-time-to-live: 10m
# 空闲连接可用性校验间隔
validate-after-inactivity: 30s
server:
webmvc:
discovery:
locator:
lowerCaseServiceId: true
enabled: true
routes:
# 认证中心
- id: seewis-auth
uri: lb://seewis-auth
predicates:
- Path=/auth/**
filters:
- StripPrefix=1
# 代码生成
- id: seewis-gen
uri: lb://seewis-gen
predicates:
- Path=/tool/**
filters:
- StripPrefix=1
# 系统模块
- id: seewis-system
uri: lb://seewis-system
predicates:
- Path=/system/**,/monitor/**
filters:
- StripPrefix=1
# 资源服务
- id: seewis-resource
uri: lb://seewis-resource
predicates:
- Path=/resource/**
filters:
- StripPrefix=1
# AI服务
- id: seewis-ai
uri: lb://seewis-ai
predicates:
- Path=/snail-ai/**
filters:
- StripPrefix=1
# workflow服务
- id: seewis-workflow
uri: lb://seewis-workflow
predicates:
- Path=/workflow/**
filters:
- StripPrefix=1
# warm-flow服务
- id: warm-flow
uri: lb://seewis-workflow
predicates:
- Path=/warm-flow-ui/**,/warm-flow/**
# 演示服务
- id: seewis-demo
uri: lb://seewis-demo
predicates:
- Path=/demo/**
filters:
- StripPrefix=1
# MQ演示服务
- id: seewis-test-mq
uri: lb://seewis-test-mq
predicates:
- Path=/test-mq/**
filters:
- StripPrefix=1