apiVersion: traefik.containo.us/v1alpha1 kind: IngressRoute metadata: name: im.https spec: entryPoints: - websecure routes: - kind: Rule match: Host(`im-dev.hobbystocks.cn`) middlewares: - name: im-cors-header - name: im-headers services: - name: poyee-im port: 80 - kind: Rule match: >- Host(`im-dev.hobbystocks.cn`) && PathPrefix(`/api/chat/prohibition/paging`,`/api/msg`) middlewares: - name: im-cors-header - name: coresvc-jwt-token-v2-verify priority: 200 services: - name: poyee-im port: 80 - kind: Rule match: >- Host(`im-dev.hobbystocks.cn`) && (PathPrefix(`/api/livechat`,`/api/chat/p2p`,`/api/chat/relation`,`/api/chat/room`,`/api/chat/prohibition`,`/api/user/identity`) || Path(`/chat/handler`, `/api/user`)) middlewares: - name: im-cors-header - name: coresvc-jwt-token-v2-verify services: - name: poyee-im port: 80 tls: secretName: im-dev.hobbystocks.cn