feat: 项目初始化及当前全部内容提交
This commit is contained in:
@@ -0,0 +1,118 @@
|
||||
server:
|
||||
port: 19000
|
||||
|
||||
spring:
|
||||
application:
|
||||
name: emotion-gateway
|
||||
profiles:
|
||||
active: dev
|
||||
autoconfigure:
|
||||
exclude:
|
||||
- org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
|
||||
- org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration
|
||||
- com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration
|
||||
data:
|
||||
redis:
|
||||
host: localhost
|
||||
port: 6379
|
||||
database: 0
|
||||
timeout: 3000ms
|
||||
lettuce:
|
||||
pool:
|
||||
max-active: 20
|
||||
max-idle: 10
|
||||
min-idle: 5
|
||||
max-wait: 3000ms
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
server-addr: localhost:8848
|
||||
namespace: emotion-dev
|
||||
group: DEFAULT_GROUP
|
||||
enabled: false
|
||||
config:
|
||||
enabled: false
|
||||
gateway:
|
||||
discovery:
|
||||
locator:
|
||||
enabled: true
|
||||
lower-case-service-id: true
|
||||
routes:
|
||||
# 用户服务路由
|
||||
- id: emotion-user
|
||||
uri: lb://emotion-user
|
||||
predicates:
|
||||
- Path=/api/user/**
|
||||
filters:
|
||||
- StripPrefix=2
|
||||
|
||||
# AI对话服务路由
|
||||
- id: emotion-ai
|
||||
uri: lb://emotion-ai
|
||||
predicates:
|
||||
- Path=/api/ai/**
|
||||
filters:
|
||||
- StripPrefix=2
|
||||
|
||||
# 情绪记录服务路由
|
||||
- id: emotion-record
|
||||
uri: lb://emotion-record
|
||||
predicates:
|
||||
- Path=/api/record/**
|
||||
filters:
|
||||
- StripPrefix=2
|
||||
|
||||
# 成长课题服务路由
|
||||
- id: emotion-growth
|
||||
uri: lb://emotion-growth
|
||||
predicates:
|
||||
- Path=/api/growth/**
|
||||
filters:
|
||||
- StripPrefix=2
|
||||
|
||||
# 地图探索服务路由
|
||||
- id: emotion-explore
|
||||
uri: lb://emotion-explore
|
||||
predicates:
|
||||
- Path=/api/explore/**
|
||||
filters:
|
||||
- StripPrefix=2
|
||||
|
||||
# 成就奖励服务路由
|
||||
- id: emotion-reward
|
||||
uri: lb://emotion-reward
|
||||
predicates:
|
||||
- Path=/api/reward/**
|
||||
filters:
|
||||
- StripPrefix=2
|
||||
|
||||
# 统计分析服务路由
|
||||
- id: emotion-stats
|
||||
uri: lb://emotion-stats
|
||||
predicates:
|
||||
- Path=/api/stats/**
|
||||
filters:
|
||||
- StripPrefix=2
|
||||
|
||||
# 全局过滤器 (暂时禁用,需要实现对应的过滤器类)
|
||||
# default-filters:
|
||||
# - name: GlobalAuthFilter
|
||||
# - name: GlobalLogFilter
|
||||
|
||||
# 监控配置
|
||||
management:
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: health,info,gateway
|
||||
endpoint:
|
||||
health:
|
||||
show-details: always
|
||||
|
||||
# 日志配置
|
||||
logging:
|
||||
level:
|
||||
com.emotionmuseum: debug
|
||||
org.springframework.cloud.gateway: debug
|
||||
pattern:
|
||||
console: "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level [%logger{50}] - %msg%n"
|
||||
Reference in New Issue
Block a user