spring.application.name=API-Gateway spring.config.import=optional:configserver:${CONFIG_SERVER_URL:http://localhost:8088/} management.endpoints.web.exposure.include=* jwt.secret=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IlRocmltYWwgQXZpc2hrYSIsImlhdCI6MTUxNjIzOTAyMn0ZfxIjj211oGwL0XQ8mjTwsBqRGwDOIYGdcOHswaqc jwt.access.expiration=900000 jwt.refresh.expiration=1209600000 # Bypasses routes for jwt security jwt-bypass-routes=/api/v1/auth/, /swagger-ui/, /swagger-resources/, /api/v1/sales/survey ## Below optional configurations are applied when config-server is down #====================================================================== server.port=8080 management.zipkin.tracing.endpoint=${ZIPKIN_URL:http://localhost:9411/api/v2/spans} management.zipkin.tracing.export.enabled=true management.health.refresh.enabled=true management.tracing.sampling.probability=1.0 eureka.client.service-url.defaultZone=${EUREKA_SERVER_URL:http://localhost:8761/eureka/} eureka.client.register-with-eureka=true eureka.client.fetch-registry=true eureka.client.initial-instance-info-replication-interval-seconds=10 eureka.client.registry-fetch-interval-seconds=10 eureka.client.healthcheck.enabled=true spring.cloud.config.fail-fast=false spring.cloud.config.retry.initial-interval=2000 spring.cloud.config.retry.max-attempts=10 spring.cloud.config.retry.max-interval=10000 spring.cloud.config.retry.multiplier=1.5 spring.cloud.gateway.routes[0].id=auth-service spring.cloud.gateway.routes[0].uri=${AUTH_SERVICE_LB:lb://auth-service} spring.cloud.gateway.routes[0].predicates[0]=Path=/api/v1/auth/** spring.cloud.gateway.routes[0].filters[0].name=JwtFilter spring.cloud.gateway.routes[1].id=user-demarcation-service spring.cloud.gateway.routes[1].uri=${USER_DEMARCATION_SERVICE_LB:lb://user-demarcation-service} spring.cloud.gateway.routes[1].predicates[0]=Path=/api/v1/userDemarcation/** spring.cloud.gateway.routes[1].filters[0].name=JwtFilter spring.cloud.gateway.routes[2].id=sales-service spring.cloud.gateway.routes[2].uri=${SALES_SERVICE_LB:lb://sales-service} spring.cloud.gateway.routes[2].predicates[0]=Path=/api/v1/sales/** spring.cloud.gateway.routes[2].filters[0].name=JwtFilter spring.cloud.gateway.routes[3].id=report-service spring.cloud.gateway.routes[3].uri=${REPORT_SERVICE_LB:lb://report-service} spring.cloud.gateway.routes[3].predicates[0]=Path=/api/v1/reports/** spring.cloud.gateway.routes[3].filters[0].name=JwtFilter logging.file.name=logs/ApiGateway-log.txt logging.level.org.springframework.cloud.gateway=INFO