├── dataflow-service.properties ├── movie-service.properties ├── hystrix-dashboard.properties ├── eureka-service.properties ├── zipkin-service.properties ├── email-service.properties ├── reservation-client.properties ├── tweet-client.properties ├── auth-service.properties ├── reservation-client-github.properties ├── tweet-service.properties ├── reservation-service.properties ├── application-cloud.properties └── application.properties /dataflow-service.properties: -------------------------------------------------------------------------------- 1 | server.port=9393 2 | -------------------------------------------------------------------------------- /movie-service.properties: -------------------------------------------------------------------------------- 1 | server.port=${PORT:8001} 2 | -------------------------------------------------------------------------------- /hystrix-dashboard.properties: -------------------------------------------------------------------------------- 1 | 2 | server.port=${PORT:8010} 3 | -------------------------------------------------------------------------------- /eureka-service.properties: -------------------------------------------------------------------------------- 1 | server.port=${PORT:8761} 2 | eureka.client.register-with-eureka=false 3 | eureka.client.fetch-registry=false 4 | 5 | -------------------------------------------------------------------------------- /zipkin-service.properties: -------------------------------------------------------------------------------- 1 | 2 | server.port=${PORT:9411} 3 | 4 | spring.datasource.initialize = false 5 | 6 | 7 | spring.sleuth.enabled = false 8 | 9 | zipkin.store.type = mem 10 | -------------------------------------------------------------------------------- /email-service.properties: -------------------------------------------------------------------------------- 1 | eureka.client.serviceUrl.defaultZone=http://10.0.2.2:8761/eureka/ 2 | eureka.client.register-with-eureka=false 3 | message = hello riff 4 | eureka.client.fetch-registry=true 5 | 6 | -------------------------------------------------------------------------------- /reservation-client.properties: -------------------------------------------------------------------------------- 1 | server.port=${PORT:9999} 2 | 3 | spring.cloud.stream.bindings.output.destination=reservations 4 | 5 | security.oauth2.resource.userInfoUri=http://localhost:9191/uaa/user 6 | 7 | hystrix.command.successcmd.execution.isolation.thread.timeoutInMilliseconds: 5000 8 | spring.cloud.gateway.discovery.locator.enabled=true -------------------------------------------------------------------------------- /tweet-client.properties: -------------------------------------------------------------------------------- 1 | server.port=${PORT:9999} 2 | 3 | spring.cloud.stream.bindings.output.destination=reservations 4 | 5 | security.oauth2.resource.userInfoUri=http://localhost:9191/uaa/user 6 | 7 | hystrix.command.successcmd.execution.isolation.thread.timeoutInMilliseconds = 5000 8 | spring.cloud.gateway.discovery.locator.enabled=true 9 | -------------------------------------------------------------------------------- /auth-service.properties: -------------------------------------------------------------------------------- 1 | server.port=9191 2 | 3 | logging.level.org.springframework.security=DEBUG 4 | 5 | # security.user.name=user 6 | # security.user.password: password 7 | 8 | 9 | server.contextPath = /uaa 10 | 11 | security.sessions = if_required 12 | #security.oauth2.client.clientId: acme 13 | #security.oauth2.client.clientSecret: acmesecret 14 | #security.oauth2.client.authorized-grant-types: authorization_code,refresh_token,password 15 | #security.oauth2.client.scope: openid 16 | -------------------------------------------------------------------------------- /reservation-client-github.properties: -------------------------------------------------------------------------------- 1 | 2 | security.oauth2.client.client-id=89630a412fa314777dc2 3 | security.oauth2.client.client-secret=c7a29ec26ec7805e78b496ea67cc13e5a9b8bcf0 4 | security.oauth2.client.access-token-uri=https://github.com/login/oauth/access_token 5 | security.oauth2.client.user-authorization-uri=https://github.com/login/oauth/authorize 6 | security.oauth2.client.client-authentication-scheme=form 7 | security.oauth2.resource.user-info-uri=https://api.github.com/user 8 | security.oauth2.resource.prefer-token-info=false 9 | -------------------------------------------------------------------------------- /tweet-service.properties: -------------------------------------------------------------------------------- 1 | server.port=${PORT:8000} 2 | 3 | message = Hello Singapore!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 4 | 5 | # define the destination to which the input MessageChannel should be bound 6 | spring.cloud.stream.bindings.input.destination = reservations 7 | 8 | # ensures 1 node in a group gets message (point-to-point, not a broadcast) 9 | spring.cloud.stream.bindings.input.group = reservations-group 10 | 11 | # ensure that the Q is durable 12 | spring.cloud.stream.bindings.input.durableSubscription = true 13 | -------------------------------------------------------------------------------- /reservation-service.properties: -------------------------------------------------------------------------------- 1 | server.port=${PORT:8000} 2 | 3 | message = Hello Singapore!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 4 | 5 | # define the destination to which the input MessageChannel should be bound 6 | spring.cloud.stream.bindings.input.destination = reservations 7 | 8 | # ensures 1 node in a group gets message (point-to-point, not a broadcast) 9 | spring.cloud.stream.bindings.input.group = reservations-group 10 | 11 | # ensure that the Q is durable 12 | spring.cloud.stream.bindings.input.durableSubscription = true 13 | -------------------------------------------------------------------------------- /application-cloud.properties: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | eureka.instance.hostname=${vcap.application.uris[0]:localhost} 6 | eureka.instance.nonSecurePort=80 7 | eureka.instance.metadataMap.instanceId=${vcap.application.instance_id:${spring.application.name}:${spring.application.instance_id:${server.port}}} 8 | eureka.instance.leaseRenewalIntervalInSeconds = 5 9 | 10 | eureka.client.region = default 11 | eureka.client.registryFetchIntervalSeconds = 5 12 | eureka.client.serviceUrl.defaultZone=${vcap.services.eureka-service.credentials.uri}/eureka/ 13 | 14 | 15 | #spring.zipkin.base-url=${vcap.services.zipkin-service.credentials.uri} 16 | spring.rabbitmq.addresses=${vcap.services.reservations-rabbitmq.credentials.uri} 17 | #spring.rabbitmq.addresses = ${vcap.services.reservations-rabbitmq.credentials.uri} 18 | #spring.rabbitmq.host=${vcap.services.reservations-rabbitmq.credentials.uri} 19 | -------------------------------------------------------------------------------- /application.properties: -------------------------------------------------------------------------------- 1 | spring.sleuth.scheduled.enabled=false 2 | spring.sleuth.async.enabled=false 3 | spring.sleuth.annotation.enabled=false 4 | 5 | spring.sleuth.http.legacy.enabled = true 6 | 7 | management.endpoint.health.show-details=always 8 | management.endpoints.web.exposure.include=* 9 | 10 | 11 | 12 | management.endpoint.refresh.enabled=true 13 | 14 | 15 | ### REACTIVE 16 | endpoints.default.web.enabled=true 17 | 18 | 19 | # disable JMX 20 | endpoints.jmx.enabled=false 21 | spring.jmx.enabled=false 22 | 23 | 24 | debug=true 25 | spring.sleuth.sampler.probability = 1.0 26 | 27 | info.id=${spring.application.name} 28 | 29 | #server.port=${PORT:0} 30 | 31 | management.security.enabled=false 32 | 33 | logging.level.org.springframework.security=DEBUG 34 | #logging.pattern.console=%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(%5p) %clr(${PID:- }){magenta} %clr(---){faint} %clr([trace=%X{X-Trace-Id:-},span=%X{X-Span-Id:-}]){yellow} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n%wex 35 | 36 | spring.sleuth.log.json.enabled=true 37 | 38 | #spring.zipkin.host=${DOCKER_IP} 39 | 40 | #spring.cloud.consul.host=${DOCKER_IP} 41 | #spring.cloud.consul.discovery.hostname=${DOCKER_HOST_IP:cna} 42 | 43 | logging.level.com.netflix.eureka=OFF 44 | logging.level.com.netflix.discovery=OFF 45 | 46 | 47 | #spring.rabbitmq.host=${DOCKER_IP} 48 | #spring.redis.host=${DOCKER_IP} 49 | 50 | #spring.zipkin.base-url=http://${DOCKER_IP}:9411 51 | #spring.zipkin.base-url=http://127.0.0.1:9411 52 | 53 | 54 | 55 | 56 | 57 | endpoints.shutdown.enabled=true 58 | 59 | spring.jpa.generate-ddl=true 60 | 61 | 62 | #eureka.instance.hostname=${vcap.application.uris[0]:localhost} 63 | #eureka.instance.nonSecurePort=80 64 | 65 | 66 | endpoints.shutdown.enabled=true 67 | 68 | spring.jpa.generate-ddl=true 69 | 70 | 71 | ## Rabbit specific binder bits 72 | # spring.cloud.stream.binder.rabbit.default.default-delivery-mode=persistent 73 | # spring.cloud.stream.binder.rabbit.default.acknowledge-mode=manual 74 | # spring.cloud.stream.binder.rabbit.default.durable-subscription=true 75 | # spring.cloud.stream.binder.rabbit.default.transacted=true 76 | # spring.cloud.stream.binder.rabbit.default.default-requeue-rejected=true 77 | # spring.cloud.stream.binder.rabbit.default.auto-bind-dlq=true 78 | # spring.cloud.stream.binder.rabbit.default.republish-to-dlq=true 79 | --------------------------------------------------------------------------------