application-prd.properties 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. server.port=8320
  2. logging.level.root=info
  3. logging.path=/opt/sit/smartcity-gateway/logs
  4. logging.level.com.alibaba.nacos.client.naming=error
  5. #指定服务名
  6. spring.application.name=smart-city-v2-gateway
  7. #nacos
  8. spring.cloud.nacos.discovery.server-addr=10.0.0.136:8848
  9. spring.cloud.gateway.discovery.locator.enabled=true
  10. spring.cloud.gateway.discovery.locator.lowerCaseServiceId=true
  11. spring.cloud.gateway.routes[0].id=user
  12. spring.cloud.gateway.routes[0].uri=lb://smart-city-v2-user
  13. spring.cloud.gateway.routes[0].predicates[0]=Path=/user/**
  14. spring.cloud.gateway.routes[0].filters[0]=StripPrefix=1
  15. spring.cloud.gateway.routes[1].id=admin
  16. spring.cloud.gateway.routes[1].uri=lb://smart-city-v2-admin
  17. spring.cloud.gateway.routes[1].predicates[0]=Path=/admin/**
  18. spring.cloud.gateway.routes[1].filters[0]=StripPrefix=1
  19. spring.cloud.gateway.routes[2].id=device
  20. spring.cloud.gateway.routes[2].uri=lb://smart-city-v2-device
  21. spring.cloud.gateway.routes[2].predicates[0]=Path=/device/**
  22. spring.cloud.gateway.routes[2].filters[0]=StripPrefix=1
  23. spring.cloud.gateway.routes[3].id=workflow
  24. spring.cloud.gateway.routes[3].uri=lb://smart-city-v2-workflow
  25. spring.cloud.gateway.routes[3].predicates[0]=Path=/workflow/**
  26. spring.cloud.gateway.routes[3].filters[0]=StripPrefix=1
  27. spring.cloud.gateway.routes[4].id=access
  28. spring.cloud.gateway.routes[4].uri=lb://smart-city-v2-iothub-access
  29. spring.cloud.gateway.routes[4].predicates[0]=Path=/access/**
  30. spring.cloud.gateway.routes[4].filters[0]=StripPrefix=1
  31. spring.cloud.gateway.routes[5].id=log
  32. spring.cloud.gateway.routes[5].uri=lb://smart-city-v2-log
  33. spring.cloud.gateway.routes[5].predicates[0]=Path=/log/**
  34. spring.cloud.gateway.routes[5].filters[0]=StripPrefix=1
  35. spring.cloud.gateway.routes[6].id=iot
  36. spring.cloud.gateway.routes[6].uri=http://localhost:8090
  37. spring.cloud.gateway.routes[6].predicates[0]=Path=/iot/api/**
  38. spring.cloud.gateway.routes[6].filters[0]=StripPrefix=1
  39. spring.cloud.gateway.routes[6].filters[1]=Auth
  40. spring.servlet.multipart.max-file-size=100MB
  41. spring.servlet.multipart.max-request-size=100MB