The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: Add Realtime API Routes (#23237)
Filipe Cabaço03aa5c34740e
diff --git a/docker/docker-compose.yml b/docker/docker-compose.ymlindex 82f4a7cf096..19b1f0257d1 100644--- a/docker/docker-compose.yml+++ b/docker/docker-compose.yml@@ -138,7 +138,7 @@ services:# See: https://supabase.com/docs/guides/auth/auth-hooks#hook-custom-access-token for details# GOTRUE_HOOK_CUSTOM_ACCESS_TOKEN_ENABLED="true"# GOTRUE_HOOK_CUSTOM_ACCESS_TOKEN_URI="pg-functions://postgres/public/custom_access_token_hook"-+# GOTRUE_HOOK_MFA_VERIFICATION_ATTEMPT_ENABLED="true"# GOTRUE_HOOK_MFA_VERIFICATION_ATTEMPT_URI="pg-functions://postgres/public/mfa_verification_attempt"@@ -339,6 +339,7 @@ services:LOGFLARE_API_KEY: ${LOGFLARE_API_KEY}LOGFLARE_SINGLE_TENANT: trueLOGFLARE_SUPABASE_MODE: true+ LOGFLARE_MIN_CLUSTER_SIZE: 1# Comment variables to use Big Query backend for analyticsPOSTGRES_BACKEND_URL: postgresql://supabase_admin:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}diff --git a/docker/volumes/api/kong.yml b/docker/volumes/api/kong.ymlindex 4a07995037a..7abf42534c9 100644--- a/docker/volumes/api/kong.yml+++ b/docker/volumes/api/kong.yml@@ -26,16 +26,14 @@ acls:### Dashboard credentials###basicauth_credentials:-- consumer: DASHBOARD- username: $DASHBOARD_USERNAME- password: $DASHBOARD_PASSWORD-+ - consumer: DASHBOARD+ username: $DASHBOARD_USERNAME+ password: $DASHBOARD_PASSWORD###### API Routes###services:-## Open Auth routes- name: auth-v1-openurl: http://auth:9999/verify@@ -134,11 +132,12 @@ services:- anon## Secure Realtime routes- - name: realtime-v1+ - name: realtime-v1-ws_comment: 'Realtime: /realtime/v1/* -> ws://realtime:4000/socket/*'- url: http://realtime-dev.supabase-realtime:4000/socket/+ url: http://realtime-dev.supabase-realtime:4000/socket+ protocol: wsroutes:- - name: realtime-v1-all+ - name: realtime-v1-wsstrip_path: truepaths:- /realtime/v1/@@ -153,7 +152,26 @@ services:allow:- admin- anon-+ - name: realtime-v1-rest+ _comment: 'Realtime: /realtime/v1/* -> ws://realtime:4000/socket/*'+ url: http://realtime-dev.supabase-realtime:4000/api+ protocol: http+ routes:+ - name: realtime-v1-rest+ strip_path: true+ paths:+ - /realtime/v1/api+ plugins:+ - name: cors+ - name: key-auth+ config:+ hide_credentials: false+ - name: acl+ config:+ hide_groups_header: true+ allow:+ - admin+ - anon## Storage routes: the storage server manages its own auth- name: storage-v1_comment: 'Storage: /storage/v1/* -> http://storage:5000/*'