feat: add Supabase auth config to production Docker setup #69
Reference in New Issue
Block a user
Delete Branch "feature/add-supabase-auth-config-to-production-docker-setup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
SUPABASE_JWT_SECRETto backend indocker-compose.prod.ymlso it can verify JWTs from Supabase CloudARGlines toDockerfile.prodforVITE_API_URL,VITE_SUPABASE_URL,VITE_SUPABASE_ANON_KEYso Vite inlines them at build timebuildsection to frontend service indocker-compose.prod.ymlfor local prod buildsNo GoTrue container needed in prod — Supabase Cloud hosts the auth service.
Setup required
Add these secrets to the Gitea repo (Settings → Secrets):
SUPABASE_JWT_SECRET— from Supabase dashboard → Settings → API → JWT SecretVITE_API_URL— production API URL (e.g.https://api.nuzlocke.nerdboden.de)VITE_SUPABASE_URL— Supabase project URL (e.g.https://xyz.supabase.co)VITE_SUPABASE_ANON_KEY— Supabase anon/public keyAdd to production
.envon the deploy target:SUPABASE_JWT_SECRET=<jwt-secret>Configure in Supabase dashboard → Authentication → URL Configuration:
<frontend-url>/auth/callback🤖 Generated with Claude Code