IngressRoute.yaml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. apiVersion: traefik.containo.us/v1alpha1
  2. kind: IngressRoute
  3. metadata:
  4. name: community.https
  5. spec:
  6. entryPoints:
  7. - websecure
  8. routes:
  9. - kind: Rule
  10. match: Host(`m2-dev.hobbystocks.cn`) && (Path(`/community/app/discuss`,`/community/app/comment`, `/community/app/user`, `/community/app/discuss/share`, `/community/app/discuss/detail`) || PathPrefix(`/community/app/discuss`))
  11. middlewares:
  12. - name: community-cors-header
  13. - name: community-strip
  14. - name: coresvc-jwt-token-v2-verify
  15. - name: coresvc-forward-geo
  16. services:
  17. - name: community
  18. port: 80
  19. - kind: Rule
  20. match: Host(`m2-dev.hobbystocks.cn`) && (Path(`/community/app/search`, `/community/app/discuss-count`,`/community/app/discuss/update_score`,`/community/app/discuss/audit`, `/community/sys/comment/audit`,`/community/sys/comment/paging`, `/community/app/comment/paging`, `/community/app/user/{ver:info|refresh}`) || PathPrefix(`/community/app/associate_team`, `/community/app/like`,`/community/app/collect`, `/community/app/follow`, `/community/app/tag`, `/community/app/uninterested`))
  21. middlewares:
  22. - name: community-cors-header
  23. - name: community-strip
  24. - name: coresvc-jwt-token-v2-verify
  25. services:
  26. - name: community
  27. port: 80
  28. - kind: Rule
  29. match: Host(`m2-dev.hobbystocks.cn`) && Path(`/community/app/discuss/paging`,`/community/app/discuss/detail`)
  30. middlewares:
  31. - name: community-cors-header
  32. - name: community-strip
  33. - name: coresvc-jwt-token-v2-verify-optional
  34. services:
  35. - name: community
  36. port: 80
  37. - kind: Rule
  38. match: Host(`m2-dev.hobbystocks.cn`) && (PathPrefix(`/community/doc`) || PathPrefix(`/community/static`)|| PathPrefix(`/community/webjars/`)|| PathPrefix(`/community/v3/api-docs/`))
  39. middlewares:
  40. - name: community-strip
  41. services:
  42. - name: community
  43. port: 80
  44. tls:
  45. secretName: m2-dev.hobbystocks.cn
  46. ---
  47. apiVersion: traefik.containo.us/v1alpha1
  48. kind: IngressRoute
  49. metadata:
  50. name: community.http
  51. spec:
  52. entryPoints:
  53. - web
  54. routes:
  55. - kind: Rule
  56. match: Host(`community-dev.local`) && Path(`/player.dic`)
  57. services:
  58. - name: community
  59. port: 80