refactor: spring gateway sticky session

This commit is contained in:
CaptainB 2023-05-17 16:09:13 +08:00 committed by 刘瑞斌
parent 3222ea22b2
commit 231ac34b44
1 changed files with 2 additions and 7 deletions

View File

@ -38,12 +38,7 @@ springdoc.swagger-ui.urls[7].url=/workstation/v3/api-docs
springdoc.swagger-ui.urls[7].name=workstation springdoc.swagger-ui.urls[7].name=workstation
springdoc.swagger-ui.urls[8].url=/ui/v3/api-docs springdoc.swagger-ui.urls[8].url=/ui/v3/api-docs
springdoc.swagger-ui.urls[8].name=ui springdoc.swagger-ui.urls[8].name=ui
# websocket # sticky-session
#spring.cloud.gateway.routes[0].id=setting spring.cloud.loadbalancer.sticky-session.add-service-instance-cookie=true
#spring.cloud.gateway.routes[0].uri=lb:ws://setting
#spring.cloud.gateway.routes[0].predicates[0]=Path=/websocket/**
#spring.cloud.gateway.routes[1].id=ws
#spring.cloud.gateway.routes[1].uri=lb:ws://setting
#spring.cloud.gateway.routes[1].predicates[0]=Path=/ws/**
# #
logging.file.path=/opt/metersphere/logs/gateway logging.file.path=/opt/metersphere/logs/gateway