Browse Source

增加对青山牧场配置

zhuoning 2 years ago
parent
commit
148fd8cc7f

+ 40 - 0
huimv-farm-gateway/src/main/resources/application-qingshan_1.yml

@@ -0,0 +1,40 @@
+server:
+  port: 10060
+
+spring:
+  application:
+    name: env-gateway
+  cloud:
+    gateway:
+      enabled: true
+      routes:
+        - id: admin
+          uri: http://127.0.0.1:10061
+          predicates:
+            - Path=/admin/**
+          filters:
+            - StripPrefix=1
+        - id: video
+          uri: http://127.0.0.1:10062
+          predicates:
+            - Path=/video/**
+          filters:
+            - StripPrefix=1
+        - id: manage
+          uri: http://127.0.0.1:10063
+          predicates:
+            - Path=/manage/**
+          filters:
+            - StripPrefix=1
+        - id: produce
+          uri: http://39.105.160.25:10064
+          predicates:
+            - Path=/produce/**
+          filters:
+            - StripPrefix=1
+
+logging:
+  level:
+    org.springframework.cloud.gateway: debug  # Gateway调试模式
+
+

+ 2 - 1
huimv-farm-gateway/src/main/resources/application.properties

@@ -1,3 +1,4 @@
 #spring.profiles.active=dev
 #spring.profiles.active=lishui
-spring.profiles.active=qingshan
+#spring.profiles.active=qingshan
+spring.profiles.active=qingshan_1