Skip to content

Instantly share code, notes, and snippets.

@s2shubham
Last active May 27, 2025 09:38
Show Gist options
  • Save s2shubham/abad24c031c1f4fe783d0ca9e813f677 to your computer and use it in GitHub Desktop.
Save s2shubham/abad24c031c1f4fe783d0ca9e813f677 to your computer and use it in GitHub Desktop.
Spring Cloud Config Microservices Properties
# api-gateway specific properties
spring.cloud.gateway.routes[0].id=hello-service
spring.cloud.gateway.routes[0].uri=lb://hello-service
spring.cloud.gateway.routes[0].predicates[0]=Path=/hello*,/hello/**
spring.cloud.gateway.routes[0].filters[0]=AddRequestHeader=X-Request-Source,Gateway
#spring.cloud.gateway.routes[0].filters[1]=JwtValidation
spring.cloud.gateway.routes[1].id=greeting-service
spring.cloud.gateway.routes[1].uri=lb://greeting-service
spring.cloud.gateway.routes[1].predicates[0]=Path=/greet*,/greet/**
#jwt.secret-key=aVeryStrongAndRandomSecretKeyForJWTs1234567890
logging.level.com.example.apigateway=INFO
# auth-service specific properties
jwt.secret-key=aVeryStrongAndRandomSecretKeyForJWTs1234567890
logging.level.com.example.auth_service=INFO
# greeting-service specific properties
logging.level.com.example.greeting_service=INFO
# hello-service specific properties
greeting.service.url=http://greeting-service/greet
logging.level.com.example.hello_service=INFO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment