Skip to content

Commit

Permalink
fix: Add Realtime REST routes to CLI (#1994)
Browse files Browse the repository at this point in the history
  • Loading branch information
filipecabaco authored Feb 26, 2024
2 parents 756a0b2 + ee5735d commit 8abc370
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
17 changes: 15 additions & 2 deletions internal/start/templates/kong.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,29 @@ services:
add:
headers:
- "Content-Profile: graphql_public"
- name: realtime-v1
- name: realtime-v1-ws
_comment: "Realtime: /realtime/v1/* -> ws://realtime:4000/socket/*"
url: http://{{ .RealtimeId }}:4000/socket
protocol: ws
routes:
- name: realtime-v1-all
- name: realtime-v1-ws
strip_path: true
paths:
- /realtime/v1/
plugins:
- name: cors
- name: realtime-v1-rest
_comment: "Realtime: /realtime/v1/* -> http://realtime:4000/api/*"
url: http://{{ .RealtimeId }}:4000/api
protocol: http
routes:
- name: realtime-v1-rest
strip_path: true
paths:
- /realtime/v1/api
plugins:
- name: cors

- name: storage-v1
_comment: "Storage: /storage/v1/* -> http://storage-api:5000/*"
url: http://{{ .StorageId }}:5000/
Expand Down
2 changes: 1 addition & 1 deletion internal/utils/misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const (
PgbouncerImage = "bitnami/pgbouncer:1.20.1-debian-11-r39"
PgProveImage = "supabase/pg_prove:3.36"
GotrueImage = "supabase/gotrue:v2.143.0"
RealtimeImage = "supabase/realtime:v2.25.50"
RealtimeImage = "supabase/realtime:v2.25.66"
StorageImage = "supabase/storage-api:v0.46.4"
LogflareImage = "supabase/logflare:1.4.0"
// Should be kept in-sync with EdgeRuntimeImage
Expand Down

0 comments on commit 8abc370

Please sign in to comment.