Browse Source

网关添加

wangyangyang 4 years ago
parent
commit
fe0c90930e
1 changed files with 6 additions and 0 deletions
  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