523096025 4 år sedan
förälder
incheckning
591dd27949
1 ändrade filer med 18 tillägg och 1 borttagningar
  1. 18 1
      huimv-ql-farm/huimv-ql-gateway/src/main/resources/application.yml

+ 18 - 1
huimv-ql-farm/huimv-ql-gateway/src/main/resources/application.yml

@@ -16,7 +16,24 @@ spring:
             - Path=/environment/**
             - Path=/environment/**
           filters:
           filters:
             - StripPrefix=1
             - StripPrefix=1
-
+        - id: video_route
+            uri: http://192.168.1.53:8100               #匹配后提供的路由地址
+            predicates:
+              - Path=/video/**
+            filters:
+              - StripPrefix=1
+        - id: production_route
+            uri: http://192.168.1.53:8085               #匹配后提供的路由地址
+            predicates:
+              - Path=/production/**
+            filters:
+              - StripPrefix=1
+        - id: security_route
+            uri: http://192.168.1.53:8095           #匹配后提供的路由地址
+            predicates:
+              - Path=/security/**
+            filters:
+              - StripPrefix=1
 logging:
 logging:
   level:
   level:
     org.springframework.cloud.gateway: debug  # Gateway调试模式
     org.springframework.cloud.gateway: debug  # Gateway调试模式