wangyangyang 4 anni fa
parent
commit
fe0c90930e
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. 6 0
      gateway/src/main/resources/application-prd.properties

+ 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