bootstrap.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. spring:
  2. application:
  3. name: zuul-server
  4. server:
  5. port: 5555
  6. eureka:
  7. client:
  8. serviceUrl:
  9. defaultZone: http://${eureka.host:127.0.0.1}:${eureka.port:8761}/eureka/
  10. instance:
  11. prefer-ip-address: true
  12. zuul:
  13. routes:
  14. client-a:
  15. path: /clientc/**
  16. serviceId: client-a
  17. client-service:
  18. path: /clientb/**
  19. serviceId: client-service
  20. client-member-service:
  21. path: /client/**
  22. serviceId: client-member-service
  23. auth-server:
  24. # //auth服务 spring-application-name
  25. path: /uaa/**
  26. # sensitiveHeaders:
  27. sensitive-headers: Access-Control-Allow-Origin,Access-Control-Allow-Methods
  28. host:
  29. socket-timeout-millis: 6000
  30. connect-timeout-millis: 6000
  31. hystrix:
  32. command:
  33. default:
  34. execution:
  35. isolation:
  36. thread:
  37. timeout-in-milliseconds: 3000
  38. ribbon:
  39. ReadTimeout: 6000
  40. ConnectTimeout: 6000
  41. eureka:
  42. enabled: true
  43. security:
  44. # basic:
  45. # enabled: false
  46. oauth2:
  47. client:
  48. access-token-uri: http://localhost:7777/uaa/oauth/token #令牌端点
  49. user-authorization-uri: http://localhost:7777/uaa/oauth/authorize #授权端点
  50. client-id: zuul_server #OAuth2客户端ID
  51. client-secret: secret #OAuth2客户端密钥
  52. resource:
  53. jwt:
  54. key-value: springcloud123 #使用对称加密方式,默认算法为HS256