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 <fabiomgpinheiro@gmail.com>

---------

Signed-off-by: Fabio Pinheiro <fabiomgpinheiro@gmail.com>
Co-authored-by: Fabio Pinheiro <fabiomgpinheiro@gmail.com>
Signed-off-by: Shailesh Patil <53746241+mineme0110@users.noreply.github.com>
Signed-off-by: mineme0110 <shailesh.patil@iohk.io>
  • Loading branch information
mineme0110 and FabioPinheiro committed May 1, 2024
1 parent fc1b95e commit bf3ba5a
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 bf3ba5a

Please sign in to comment.