新增user服务和gateway服务

This commit is contained in:
jiangh277
2025-08-12 19:01:26 +08:00
parent 957462b60b
commit aa42f35254
29 changed files with 1047 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
# application.properties
spring.application.name=timeline-gateway
server.port=30000
# ????
spring.cloud.gateway.routes[0].id=story-service
spring.cloud.gateway.routes[0].uri=lb://timeline.story
spring.cloud.gateway.routes[0].predicates[0]=Path=/story/**
spring.cloud.gateway.routes[0].filters[0]=StripPrefix=1
spring.cloud.gateway.routes[1].id=file-service
spring.cloud.gateway.routes[1].uri=lb://timeline.file
spring.cloud.gateway.routes[1].predicates[0]=Path=/file/**
spring.cloud.gateway.routes[1].filters[0]=StripPrefix=1
# JWT??
jwt.secret=timelineSecretKey
jwt.expiration=86400
# Actuator??
management.endpoints.web.exposure.include=*
management.endpoint.health.show-details=always
# ????
logging.level.org.springframework.cloud.gateway=DEBUG
logging.level.com.timeline.gateway=DEBUG