Allow custom Database URLs for Studio #39544
Unanswered
6ixfalls
asked this question in
Feature Requests
Replies: 2 comments 2 replies
|
Um, I'm not quite sure that's entirely the case at this point :) Current code for self-hosted respects these: supabase/docker/docker-compose.yml Lines 35 to 36 in 3590597 to build a connection string using this env-vars to connect to pg-meta → Postgres: supabase/apps/studio/lib/api/self-hosted/util.ts Lines 26 to 30 in 3590597 and supabase/apps/studio/lib/api/self-hosted/query.ts Lines 26 to 27 in 3590597 |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Currently, Supabase Studio hardcodes a DB_HOST of 127.0.0.1 when self-hosting. (https://github.com/supabase/supabase/blob/master/apps/studio/pages/api/platform/projects/%5Bref%5D/databases.ts)
I'd like to configure that through environment variables, since my database/supavisor does not reside at
127.0.0.1.All reactions