From 896d8a77743468372f3a67b3ac857af4a40677f8 Mon Sep 17 00:00:00 2001 From: mineme0110 Date: Wed, 22 Nov 2023 20:37:25 +0000 Subject: [PATCH 1/2] fix: websocket correct indentation --- infrastructure/charts/mediator/templates/apisixroute.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure/charts/mediator/templates/apisixroute.yaml b/infrastructure/charts/mediator/templates/apisixroute.yaml index 1f6772c4..0bf77cfe 100644 --- a/infrastructure/charts/mediator/templates/apisixroute.yaml +++ b/infrastructure/charts/mediator/templates/apisixroute.yaml @@ -41,7 +41,7 @@ spec: backends: - serviceName: mediator-service servicePort: 8080 - websocket: true + websocket: true plugins: - name: proxy-rewrite enable: true From 52621f7122d6e251bb8274c5b21adee8230052f0 Mon Sep 17 00:00:00 2001 From: mineme0110 Date: Wed, 22 Nov 2023 20:48:02 +0000 Subject: [PATCH 2/2] fix: websocket correct indentation --- .../mediator/templates/apisixroute.yaml | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/infrastructure/charts/mediator/templates/apisixroute.yaml b/infrastructure/charts/mediator/templates/apisixroute.yaml index 0bf77cfe..e9e6aa91 100644 --- a/infrastructure/charts/mediator/templates/apisixroute.yaml +++ b/infrastructure/charts/mediator/templates/apisixroute.yaml @@ -9,28 +9,6 @@ metadata: spec: http: - name: mediator-rule - match: - hosts: - {{- range .Values.ingress.applicationUrls }} - - {{ . }} - {{- end }} - paths: - - /* - backends: - - serviceName: mediator-service - servicePort: 8080 - 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" . }} - - name: mediator-ws-rule match: hosts: {{- range .Values.ingress.applicationUrls }}