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>
  • Loading branch information
mineme0110 and FabioPinheiro committed Apr 30, 2024
1 parent 6be65bd commit edd6413
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 edd6413

Please sign in to comment.