cloud-gateway-prod.yaml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. server:
  2. port: 8880 #端口
  3. spring:
  4. cloud:
  5. nacos:
  6. discovery:
  7. register-enabled: true
  8. server-addr: nacos-server-hostname:8848
  9. username: nacos-prod
  10. password: centralprod
  11. namespace: a894fba3-ee6e-4dc7-938b-ad11112ccfa9
  12. circuitbreaker:
  13. sentinel:
  14. enabled: true
  15. sentinel:
  16. enabled: true
  17. transport:
  18. dashboard: sentinel-hostname:8858
  19. port: 8719
  20. gateway:
  21. routes:
  22. - id: ping
  23. uri: file:///dev/null
  24. predicates:
  25. - Path=/ping
  26. filters:
  27. - SetStatus=200
  28. - id: central-auth
  29. uri: lb://central-auth
  30. predicates:
  31. - Path=/central/auth/**,/api/central/auth/**
  32. - id: central-conf
  33. uri: lb://central-conf
  34. predicates:
  35. - Path=/api/central/conf/**
  36. - id: central-event
  37. uri: lb://central-event
  38. predicates:
  39. - Path=/central/event/**,/api/central/event/**
  40. - id: central-open
  41. uri: lb://central-open
  42. predicates:
  43. - Path=/central/open/**
  44. - id: central-pay
  45. uri: lb://central-pay
  46. predicates:
  47. - Path=/central/pay/**,/api/central/pay/**
  48. - id: central-promotion
  49. uri: lb://central-promotion
  50. predicates:
  51. - Path=/central/promotion/**,/api/central/promotion/**
  52. - id: central-security
  53. uri: lb://central-security
  54. predicates:
  55. - Path=/central/security/**,/api/central/security/**
  56. - id: central-user
  57. uri: lb://central-user
  58. predicates:
  59. - Path=/central/user/**,/api/central/user/**
  60. - id: central-value
  61. uri: lb://central-value
  62. predicates:
  63. - Path=/central/value/**,/api/central/value/**
  64. - id: central-admin
  65. uri: lb://central-admin
  66. predicates:
  67. - Path=/central/admin/**
  68. - id: central-advertisement
  69. uri: lb://central-advertisement
  70. predicates:
  71. - Path=/central/advertisement/**,/api/central/advertisement/**
  72. ### projects
  73. - id: project-voice
  74. uri: lb://project-voice
  75. predicates:
  76. - Path=/project/voice/**
  77. # 日志配置
  78. logging:
  79. level:
  80. root: error
  81. com:
  82. atmob:
  83. cloud:
  84. gateway:
  85. service: info
  86. central:
  87. remote:
  88. clients: