-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapi-gateway.yml
More file actions
43 lines (35 loc) · 911 Bytes
/
api-gateway.yml
File metadata and controls
43 lines (35 loc) · 911 Bytes
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
## Info endpoint
info:
app:
name: API Gateway
# Define the port where the API gateway server would be running
server:
port: ${PORT:8080}
# Define the routes which determine what URL are serviced by what applications.
# The application/services are defined in the bootstrap.yml file of individual applications
# using the spring.application.name property.
zuul:
routes:
command-users:
path: /command/users/**
query-users:
path: /query/users/**
# Define the Eureka server that handles service registration
eureka:
client:
serviceUrl:
defaultZone: http://localhost:8761/eureka/
---
spring:
profiles: docker
# Fix docker swarm network error.
# cloud:
# inetutils:
# preferredNetworks: micro-starter_default
eureka:
instance:
preferIpAddress: false
hostname: gateway
client:
serviceUrl:
defaultZone: http://registry:8761/eureka/