Last active
May 27, 2025 09:38
-
-
Save s2shubham/abad24c031c1f4fe783d0ca9e813f677 to your computer and use it in GitHub Desktop.
Spring Cloud Config Microservices Properties
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# auth-service specific properties | |
jwt.secret-key=aVeryStrongAndRandomSecretKeyForJWTs1234567890 | |
logging.level.com.example.auth_service=INFO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# greeting-service specific properties | |
logging.level.com.example.greeting_service=INFO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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