Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add and enable websocket on apisix route #179

Merged
merged 2 commits into from
Nov 22, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions infrastructure/charts/mediator/templates/apisixroute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,41 @@ spec:

---

apiVersion: apisix.apache.org/v2
kind: ApisixRoute
metadata:
name: mediator-ws-route
namespace: "{{ .Release.Namespace }}"
labels:
{{ template "labels.common" . }}
spec:
http:
FabioPinheiro marked this conversation as resolved.
Show resolved Hide resolved
- 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" . }}

---

apiVersion: apisix.apache.org/v2
kind: ApisixRoute
metadata:
Expand Down
Loading