Skip to content

Commit

Permalink
fix: Add and enable websocket on apisix route (#179)
Browse files Browse the repository at this point in the history
* fix: Add and enable websocket on apisix route

* Update infrastructure/charts/mediator/templates/apisixroute.yaml

Signed-off-by: Fabio Pinheiro <[email protected]>

---------

Signed-off-by: Fabio Pinheiro <[email protected]>
Co-authored-by: Fabio Pinheiro <[email protected]>
Signed-off-by: Shailesh <Patil>
  • Loading branch information
2 people authored and Shailesh committed Apr 30, 2024
1 parent 6b9cdc8 commit 54aa1de
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions infrastructure/charts/mediator/templates/apisixroute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,29 @@ spec:
header_name: "X-Request-ID"
include_in_response: true
{{ template "cors" . }}
- name: mediator-ws-rule
match:
hosts:
{{- range .Values.ingress.applicationUrls }}
- {{ . }}
{{- end }}
paths:
- /*
backends:
- serviceName: mediator-service
servicePort: 8080
websocket: true
plugins:
- name: proxy-rewrite
enable: true
config:
regex_uri: ["^/(.*)","/$1"]
- name: request-id
enable: true
config:
header_name: "X-Request-ID"
include_in_response: true
{{ template "cors" . }}

---

Expand Down

0 comments on commit 54aa1de

Please sign in to comment.