Explorar el Código

gateway config

yassine hace 10 meses
padre
commit
dbb27ad6ae
Se han modificado 2 ficheros con 25 adiciones y 1 borrados
  1. 18
    0
      api-gateway.yml
  2. 7
    1
      discovery.yml

+ 18
- 0
api-gateway.yml Ver fichero

@@ -0,0 +1,18 @@
1
+spring:
2
+  application:
3
+    name: api-gateway
4
+
5
+  cloud:
6
+    gateway:
7
+      routes:
8
+        - id: customer
9
+          uri: lb://customer
10
+          predicates:
11
+            - Path=/customer/**
12
+          filters:
13
+            - StripPrefix=1
14
+management:
15
+  endpoints:
16
+    web:
17
+      exposure:
18
+        include: "*"

+ 7
- 1
discovery.yml Ver fichero

@@ -3,4 +3,10 @@ server:
3 3
 eureka:
4 4
   client:
5 5
     register-with-eureka: false
6
-    fetch-registry: false
6
+    fetch-registry: false
7
+
8
+management:
9
+  endpoints:
10
+    web:
11
+      exposure:
12
+        include: "*"

Powered by TurnKey Linux.