File tree Expand file tree Collapse file tree 1 file changed +27
-6
lines changed
charts/supabase/templates/kong Expand file tree Collapse file tree 1 file changed +27
-6
lines changed Original file line number Diff line number Diff line change @@ -141,12 +141,13 @@ data:
141141 - admin
142142 - anon
143143 {{- end }}
144- {{- if .Values.realtime.enabled }}
145- - name: realtime-v1
146- _comment: "Realtime: /realtime/v1/* -> ws://{{ include "supabase.realtime.fullname" . }}:{{ .Values.realtime.service.port }}/socket/*"
147- url: http://{{ include "supabase.realtime.fullname" . }}:{{ .Values.realtime.service.port }}/socket
144+ {{- if .Values.supabase.realtime.enabled }}
145+ - name: realtime-v1-ws
146+ _comment: "Realtime: /realtime/v1/* -> ws://{{ .Values.supabase.realtime.service.name }}:{{ .Values.supabase.realtime.service.port }}/socket/*"
147+ url: http://{{ .Values.supabase.realtime.service.name }}:{{ .Values.supabase.realtime.service.port }}/socket
148+ protocol: ws
148149 routes:
149- - name: realtime-v1-all
150+ - name: realtime-v1-ws
150151 strip_path: true
151152 paths:
152153 - /realtime/v1/
@@ -161,6 +162,26 @@ data:
161162 allow:
162163 - admin
163164 - anon
165+ - name: realtime-v1-rest
166+ _comment: 'Realtime: /realtime/v1/* -> http://{{ .Values.supabase.realtime.service.name }}:{{ .Values.supabase.realtime.service.port }}/api/*'
167+ url: http://{{ .Values.supabase.realtime.service.name }}:{{ .Values.supabase.realtime.service.port }}/api
168+ protocol: http
169+ routes:
170+ - name: realtime-v1-rest
171+ strip_path: true
172+ paths:
173+ - /realtime/v1/api
174+ plugins:
175+ - name: cors
176+ - name: key-auth
177+ config:
178+ hide_credentials: false
179+ - name: acl
180+ config:
181+ hide_groups_header: true
182+ allow:
183+ - admin
184+ - anon
164185 {{- end }}
165186 {{- if .Values.storage.enabled }}
166187 - name: storage-v1
@@ -230,4 +251,4 @@ data:
230251 config:
231252 hide_credentials: true
232253 {{- end }}
233- {{- end }}
254+ {{- end }}
You can’t perform that action at this time.
0 commit comments