diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 82f4a7cf09656..19b1f0257d16f 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: true LOGFLARE_SUPABASE_MODE: true + LOGFLARE_MIN_CLUSTER_SIZE: 1 # Comment variables to use Big Query backend for analytics POSTGRES_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.yml index 4a07995037aaf..7abf42534c917 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-open url: 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: ws routes: - - name: realtime-v1-all + - name: realtime-v1-ws strip_path: true paths: - /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/*'