-
Notifications
You must be signed in to change notification settings - Fork 1
/
application.yml
48 lines (40 loc) · 1.12 KB
/
application.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# GLOBAL CONFIGURATION
spring:
# if you want to set a different profile
# use environment variable:
#
# SPRING_PROFILES_ACTIVE=docker
profiles.active: local
application.name: Zuul
# zuul proxy always exposes 8080
server.port: 8080
# zuul routes
zuul:
ignoredServices: '*'
routes:
servicea:
path: /servicea/**
serviceId: ServiceA
serviceb:
path: /serviceb/**
serviceId: ServiceB
---
# LOCAL CONFIGURATION
spring:
profiles: local
eureka.client:
# in local mode you have to run your service
# discovery on localhost (you also can run the
# cloud infrastructure on your local docker host)
serviceUrl.defaultZone: http://localhost:8761/eureka/
# fetch all 5 seconds the delta from the service registry
registry-fetch-interval-seconds: 5
---
# DOCKER CONFIGURATION
spring:
profiles: docker
eureka.client:
# the hostname of your eureka server should be 'discovery'
serviceUrl.defaultZone: http://discovery:8761/eureka/
# fetch all 5 seconds the delta from the service registry
registry-fetch-interval-seconds: 5