Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Adds the graphql reverse proxy

Copple1d1f74baacd8
diff --git a/docker/volumes/api/kong.yml b/docker/volumes/api/kong.yml
index aab2fe55aa0..452222651c4 100644
--- a/docker/volumes/api/kong.yml
+++ b/docker/volumes/api/kong.yml
@@ -95,6 +95,27 @@ services:
- admin
- anon
+ ## Secure GraphQL routes
+ - name: rest-v1
+ _comment: "PostgREST: /rest/v1/* -> http://rest:3000/*"
+ url: http://rest:3000/
+ routes:
+ - name: graphql-v1-all
+ strip_path: true
+ paths:
+ - /graphql/v1/
+ plugins:
+ - name: cors
+ - name: key-auth
+ config:
+ hide_credentials: true
+ - name: acl
+ config:
+ hide_groups_header: true
+ allow:
+ - admin
+ - anon
+
## Secure Realtime routes
- name: realtime-v1
_comment: "Realtime: /realtime/v1/* -> ws://realtime:4000/socket/*"