2025-08-12 19:01:26 +08:00
|
|
|
# application.properties
|
|
|
|
|
spring.application.name=timeline-gateway
|
|
|
|
|
server.port=30000
|
|
|
|
|
|
2025-12-24 14:17:19 +08:00
|
|
|
spring.datasource.url=jdbc:mysql://59.80.22.43:33306/timeline?serverTimezone=UTC&allowPublicKeyRetrieval=true
|
|
|
|
|
spring.datasource.username=root
|
|
|
|
|
spring.datasource.password=WoCloud@9ol7uj
|
|
|
|
|
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
|
|
|
|
|
2025-12-24 18:17:14 +08:00
|
|
|
#
|
2025-08-12 19:01:26 +08:00
|
|
|
spring.cloud.gateway.routes[0].id=story-service
|
2025-12-24 14:17:19 +08:00
|
|
|
spring.cloud.gateway.routes[0].uri=http://localhost:30001
|
2025-08-12 19:01:26 +08:00
|
|
|
spring.cloud.gateway.routes[0].predicates[0]=Path=/story/**
|
2025-12-24 14:17:19 +08:00
|
|
|
spring.cloud.gateway.routes[0].filters[0]=StripPrefix=0
|
2025-08-12 19:01:26 +08:00
|
|
|
|
|
|
|
|
spring.cloud.gateway.routes[1].id=file-service
|
2025-12-24 14:17:19 +08:00
|
|
|
spring.cloud.gateway.routes[1].uri=http://localhost:30002
|
2025-08-12 19:01:26 +08:00
|
|
|
spring.cloud.gateway.routes[1].predicates[0]=Path=/file/**
|
2025-12-24 14:17:19 +08:00
|
|
|
spring.cloud.gateway.routes[1].filters[0]=StripPrefix=0
|
|
|
|
|
|
2025-12-24 18:17:14 +08:00
|
|
|
spring.cloud.gateway.routes[2].id=user-service-ws
|
2025-12-24 14:17:19 +08:00
|
|
|
spring.cloud.gateway.routes[2].uri=http://localhost:30003
|
2025-12-24 18:17:14 +08:00
|
|
|
spring.cloud.gateway.routes[2].predicates[0]=Path=/user/ws/**
|
2025-12-24 14:17:19 +08:00
|
|
|
spring.cloud.gateway.routes[2].filters[0]=StripPrefix=0
|
2025-08-12 19:01:26 +08:00
|
|
|
|
2025-12-24 18:17:14 +08:00
|
|
|
|
|
|
|
|
spring.cloud.gateway.routes[3].id=user-service
|
2025-12-24 14:17:19 +08:00
|
|
|
spring.cloud.gateway.routes[3].uri=http://localhost:30003
|
2025-12-24 18:17:14 +08:00
|
|
|
spring.cloud.gateway.routes[3].predicates[0]=Path=/user/**
|
2025-12-24 14:17:19 +08:00
|
|
|
spring.cloud.gateway.routes[3].filters[0]=StripPrefix=0
|
|
|
|
|
|
2025-12-24 18:17:14 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-12-24 14:17:19 +08:00
|
|
|
# JWT配置
|
|
|
|
|
jwt.secret=6f3f9c2b9d9a4e3f8c0d6a7b5c4e3f1a6f3f9c2b9d9a4e3f8c0d6a7b5c4e3f1a
|
2025-08-12 19:01:26 +08:00
|
|
|
jwt.expiration=86400
|
|
|
|
|
|
2025-12-24 14:17:19 +08:00
|
|
|
# Redis
|
|
|
|
|
spring.data.redis.host=localhost
|
|
|
|
|
spring.data.redis.port=36379
|
|
|
|
|
spring.data.redis.password=123456
|
|
|
|
|
spring.data.redis.timeout=5000
|
|
|
|
|
|
|
|
|
|
# Actuator配置
|
2025-08-12 19:01:26 +08:00
|
|
|
management.endpoints.web.exposure.include=*
|
|
|
|
|
management.endpoint.health.show-details=always
|
|
|
|
|
|
2025-12-24 14:17:19 +08:00
|
|
|
# 日志配置
|
2025-08-12 19:01:26 +08:00
|
|
|
logging.level.org.springframework.cloud.gateway=DEBUG
|
2025-12-24 18:17:14 +08:00
|
|
|
logging.level.com.timeline.gateway=DEBUG
|