IngressRoute.yaml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. apiVersion: traefik.io/v1alpha1
  2. kind: IngressRoute
  3. metadata:
  4. name: http.auction-bid
  5. spec:
  6. entryPoints:
  7. - web
  8. routes:
  9. - kind: Rule
  10. match: Host(`dev.ahxpm.com`) && (Path(`/bid/doc.html`) || PathPrefix(`/bid/webjars`) || PathPrefix(`/bid/swagger-resources`) || PathPrefix(`/bid/v2/api-docs`) || PathPrefix(`/bid/v3/api-docs`))
  11. middlewares:
  12. - name: auction-bid-strip
  13. - name: bid-cors-header
  14. services:
  15. - name: auction-bid
  16. port: 80
  17. - kind: Rule
  18. match: >-
  19. Host(`dev.ahxpm.com`) && (Path(`/bid/bid/bidding/addPrice`) || Path(`/bid/auction/banner/list`) || Path(`/bid/lot/hot/list`) || Path(`/bid/lot/list/search`) || Path(`/bid/lot/category/query`) || Path(`/bid/auction/details`) || PathPrefix(`/bid/lot/detail/`) || Path(`/bid/lot/notice/list`) || PathPrefix(`/bid/lot/notice/detail/`))
  20. middlewares:
  21. - name: auction-bid-strip
  22. - name: bid-cors-header
  23. - name: ahx-oidc.authn-optional-app
  24. services:
  25. - name: auction-bid
  26. port: 80
  27. - kind: Rule
  28. match: >-
  29. Host(`dev.ahxpm.com`) && PathPrefix(`/bid/ws/lot/`)
  30. middlewares:
  31. - name: auction-bid-strip
  32. - name: bid-cors-header
  33. - name: ahx-oidc.authn-optional-app
  34. services:
  35. - name: auction-bid
  36. port: 80
  37. - kind: Rule
  38. match: >-
  39. Host(`dev.ahxpm.com`) && PathPrefix(`/bid`)
  40. middlewares:
  41. - name: auction-bid-strip
  42. - name: bid-cors-header
  43. - name: ahx-oidc.authn-app
  44. services:
  45. - name: auction-bid
  46. port: 80