Master server on Supabase
Set up the database, the storage bucket and the edge function that keep the server list.
The files are in the plugin (MasterServer/supabase/) and in the website (vantix-website/supabase/).
#1. Run the SQL
In Supabase → SQL Editor, run these files in this order:
| Order | File | What it adds |
|---|---|---|
| 1 | migrations/20261205_server_keys.sql | Keys and the server list |
| 2 | migrations/20261206_server_branding.sql | Logo/banner and the storage bucket |
The migrations need the website's schema.sql first (profiles and private.is_admin()). Both files can be run more than once without breaking anything.
#2. Deploy the edge function
supabase functions deploy vantix-servers --no-verify-jwt#3. Point the game at it
Fill in Project Settings → Vantix Menu → MasterServerUrl (and MasterServerKey if you need it). See Project settings.
#Tables
| Table | What's in it |
|---|---|
server_keys | id, owner, label, key_prefix, key_hash (SHA-256), revoked, last_used_at, last_server_name, last_address, logo_path, banner_path |
community_servers | One row per key: address, ports, name, description, region, language, tags, map, players, version, listed, last_heartbeat |
#Storage
server-media is a public bucket for logos and banners: PNG/JPEG, max 2 MB.
#Clean-up
Servers that have been quiet for a day are deleted by a pg_cron job, if pg_cron is on. The key is kept, and the server comes back by itself on its next heartbeat.
Last updated 2026-12-06