Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save thinkmicroservices/6d659242354fce71a279af7c043d4ab3 to your computer and use it in GitHub Desktop.

Select an option

Save thinkmicroservices/6d659242354fce71a279af7c043d4ab3 to your computer and use it in GitHub Desktop.
ApiGatewayService:application.yml
server:
port: 8080
eureka:
client:
serviceUrl:
defaultZone: http://localhost:8761/eureka
spring:
cloud.gateway:
discovery:
locator:
enabled: true
lowerCaseServiceId: true
routes:
- id: content
uri: lb://CONTENT-SERVICE
predicates:
- Path=/content/**
filters:
- RewritePath=/content/(?<segment>.*), /$\{segment}
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds: 11000
ribbon:
ConnectTimeout: 10000
ReadTimeout: 10000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment