The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Add JWT example token longer than 32 characters and disable locally realtime security.
Jesús García1e88f69e8cb8
diff --git a/docker/README.md b/docker/README.mdindex 64552871b19..7ccc78a287b 100644--- a/docker/README.md+++ b/docker/README.md@@ -12,7 +12,7 @@ You can run Supabase on your local machine using `docker-compose`:import { createClient } from '@supabase/supabase-js'const SUPABASE_URL = 'http://localhost:8000'-const SUPABASE_KEY = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzdXBhYmFzZSIsImlhdCI6MTYwMzk2ODgzNCwiZXhwIjoyNTUwNjUzNjM0LCJhdWQiOiIiLCJzdWIiOiIiLCJSb2xlIjoicG9zdGdyZXMifQ.kdRWxJKxqgFOlx4BZQj-GIIOEeMILqUvdHMh8ebcn8M'+const SUPABASE_KEY = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzdXBhYmFzZSIsImlhdCI6MTYwMzk2ODgzNCwiZXhwIjoyNTUwNjUzNjM0LCJhdWQiOiIiLCJzdWIiOiIiLCJSb2xlIjoicG9zdGdyZXMifQ.magCcozTMKNrl76Tj2dsM7XTl_YH0v0ilajzAvIlw3U'const supabase = createClient(SUPABASE_URL, SUPABASE_KEY)```diff --git a/docker/docker-compose.yml b/docker/docker-compose.ymlindex 7f3760d1793..2acc9b9dfc1 100644--- a/docker/docker-compose.yml+++ b/docker/docker-compose.yml@@ -14,7 +14,7 @@ services:ports:- '9999:9999'environment:- GOTRUE_JWT_SECRET: super-secret-jwt-token+ GOTRUE_JWT_SECRET: super-secret-jwt-token-with-at-least-32-characters-longGOTRUE_JWT_EXP: 3600GOTRUE_JWT_DEFAULT_GROUP_NAME: authenticatedGOTRUE_DB_DRIVER: postgres@@ -41,7 +41,7 @@ services:PGRST_DB_URI: postgres://postgres:postgres@db:5432/postgresPGRST_DB_SCHEMA: publicPGRST_DB_ANON_ROLE: postgres- PGRST_JWT_SECRET: super-secret-jwt-token+ PGRST_JWT_SECRET: super-secret-jwt-token-with-at-least-32-characters-longrealtime:image: supabase/realtime:latestports:@@ -57,7 +57,9 @@ services:DB_PORT: 5432PORT: 4000HOSTNAME: localhost- JWT_SECRET: super-secret-jwt-token+ # Disable JWT Auth locally. The JWT_SECRET will be ignored.+ SECURE_CHANNELS: 'false'+ JWT_SECRET: super-secret-jwt-token-with-at-least-32-characters-longdb:build:context: ./postgresdiff --git a/docker/kong/kong.yml b/docker/kong/kong.ymlindex e5b5915c5d4..bc9c17d92f5 100644--- a/docker/kong/kong.yml+++ b/docker/kong/kong.yml@@ -42,4 +42,4 @@ services:consumers:- username: 'private-key'keyauth_credentials:- - key: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzdXBhYmFzZSIsImlhdCI6MTYwMzk2ODgzNCwiZXhwIjoyNTUwNjUzNjM0LCJhdWQiOiIiLCJzdWIiOiIiLCJSb2xlIjoicG9zdGdyZXMifQ.kdRWxJKxqgFOlx4BZQj-GIIOEeMILqUvdHMh8ebcn8M+ - key: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzdXBhYmFzZSIsImlhdCI6MTYwMzk2ODgzNCwiZXhwIjoyNTUwNjUzNjM0LCJhdWQiOiIiLCJzdWIiOiIiLCJSb2xlIjoicG9zdGdyZXMifQ.magCcozTMKNrl76Tj2dsM7XTl_YH0v0ilajzAvIlw3U