mall-gateway-prod.yaml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. spring:
  2. redis:
  3. host: localhost
  4. database: 0
  5. port: 6379
  6. password:
  7. timeout: 300ms
  8. boot:
  9. admin:
  10. client:
  11. # admin 服务端的地址
  12. url: http://localhost:8095
  13. management:
  14. endpoints:
  15. web:
  16. exposure:
  17. include: '*'
  18. endpoint:
  19. health:
  20. # 展示详情
  21. show-details: always
  22. # 过滤不需要认证路径条件
  23. secure:
  24. ignored:
  25. urls: #安全路径白名单
  26. - /swagger-ui.html
  27. - /swagger-resources/**
  28. - /swagger/**
  29. - /**/v2/api-docs
  30. - /**/*.js
  31. - /**/*.css
  32. - /**/*.png
  33. - /**/*.ico
  34. - /webjars/springfox-swagger-ui/**
  35. - /actuator/**
  36. - /druid/**
  37. - /admin/login
  38. - /admin/register
  39. - /admin/info
  40. - /admin/logout
  41. - /minio/upload
  42. jwt:
  43. tokenHeader: Authorization
  44. secret: mall-admin-secret
  45. expiration: 604800
  46. tokenHead: Bearer
  47. redis:
  48. database: mall
  49. key:
  50. admin: 'ums:admin'
  51. token: 'ums:token'
  52. resourceList: 'ums:resourceList'
  53. expire:
  54. common: 86400 # 24小时