Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Allow to set self host tenant name #1249

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

filipecabaco
Copy link
Contributor

What kind of change does this PR introduce?

self-hosted seed update to allow tenant_name to be configurable via environment variable.

What is the current behavior?

The current behavior requires the container name to be "realtime-dev". If it isn't then it will not match the default tenant. In cases where the container name will be different (i.e. kubernetes deployments) it is impossible to use default tenant.

What is the new behavior?

The new behavior allows to configure the default tenant_name via an environment variable named TENANT_NAME with fallback behavior to the original "realtime-dev".

Additional context

This was an issue for the supabase-kubernetes project. I have submitted a PR there as well to overwrite the seeds.exs file in supabase-community/supabase-kubernetes#91

Ultimately it would be better to have this be configuration change upstream in this repo.

Copy link

vercel bot commented Dec 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
realtime-demo ⬜️ Ignored (Inspect) Visit Preview Dec 18, 2024 11:49am

Adds a new configurable variable to set self host tenant name.

Authored-by: Scott Beardsley<[email protected]>
@filipecabaco filipecabaco force-pushed the fix/set-self-host-tenant-name branch from b13df05 to 47aee4c Compare December 18, 2024 11:49
@filipecabaco filipecabaco merged commit eeccdde into main Dec 18, 2024
4 checks passed
@filipecabaco filipecabaco deleted the fix/set-self-host-tenant-name branch December 18, 2024 12:04
@kiwicopple
Copy link
Member

🎉 This PR is included in version 2.33.68 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants