042ddc4da7329d28ff33d5e047294ab14ba5f24f.svn-base 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. server:
  2. port: 9999
  3. spring:
  4. application:
  5. name: jeecg-gateway
  6. cloud:
  7. #Sentinel配置
  8. sentinel:
  9. web-context-unify: false
  10. transport:
  11. dashboard: localhost:8087
  12. # 懒加载Sentinel Dashboard菜单
  13. eager: false
  14. gateway:
  15. discovery:
  16. locator:
  17. enabled: true
  18. globalcors:
  19. cors-configurations:
  20. '[/**]':
  21. allowCredentials: true
  22. allowedOrigins: "*"
  23. allowedMethods: "*"
  24. allowedHeaders: "*"
  25. # #如果启用nacos或者数据库配置请删除一下配置
  26. # routes:
  27. # - id: jeecg-demo
  28. # uri: lb://jeecg-demo
  29. # predicates:
  30. # - Path=/mock/**,/test/**,/bigscreen/template1/**,/bigscreen/template2/**
  31. # - id: jeecg-system
  32. # uri: lb://jeecg-system
  33. # predicates:
  34. # - Path=/sys/**,/eoa/**,/v1/**,/joa/**,/online/**,/bigscreen/**,/jmreport/**,/desform/**,/act/**,/plug-in/**,/generic/**
  35. # - id: jeecg-system-websocket
  36. # uri: lb:ws://jeecg-system
  37. # predicates:
  38. # - Path=/websocket/**,/eoaSocket/**,/newsWebsocket/**
  39. # - id: jeecg-demo-websocket
  40. # uri: lb:ws://jeecg-demo
  41. # predicates:
  42. # - Path=/vxeSocket/**
  43. # 全局熔断降级配置
  44. default-filters:
  45. - name: Hystrix
  46. args:
  47. name: default
  48. #转发地址
  49. fallbackUri: 'forward:/fallback'
  50. - name: Retry
  51. args:
  52. #重试次数,默认值是 3 次
  53. retries: 3
  54. #HTTP 的状态返回码
  55. statuses: BAD_GATEWAY,BAD_REQUEST
  56. #指定哪些方法的请求需要进行重试逻辑,默认值是 GET 方法
  57. methods: GET,POST
  58. # hystrix 信号量隔离,3秒后自动超时
  59. hystrix:
  60. enabled: true
  61. shareSecurityContext: true
  62. command:
  63. default:
  64. execution:
  65. isolation:
  66. strategy: SEMAPHORE
  67. thread:
  68. timeoutInMilliseconds: 3000