wangyangyang 4 lat temu
rodzic
commit
fe0c90930e

+ 6 - 0
gateway/src/main/resources/application-prd.properties

@@ -45,6 +45,12 @@ spring.cloud.gateway.routes[5].uri=lb://smart-city-v2-log
 spring.cloud.gateway.routes[5].predicates[0]=Path=/log/**
 spring.cloud.gateway.routes[5].filters[0]=StripPrefix=1
 
+spring.cloud.gateway.routes[6].id=iot
+spring.cloud.gateway.routes[6].uri=http://localhost:8090
+spring.cloud.gateway.routes[6].predicates[0]=Path=/iot/api/**
+spring.cloud.gateway.routes[6].filters[0]=StripPrefix=1
+spring.cloud.gateway.routes[6].filters[1]=Auth
+
 spring.servlet.multipart.max-file-size=100MB
 spring.servlet.multipart.max-request-size=100MB