← Memory
supabase-db-passwords.md
---
name: db-passwords
description: PostgreSQL connection passwords - VPS local + Supabase legacy
type: reference
---
## Hub-Beepeek — MIGRADO A VPS LOCAL (06/04/2026)
### VPS Local (activo)
- **Host**: `127.0.0.1`
- **Port**: `5432`
- **User**: `hub_beepeek`
- **Password**: `HubBeepeek2026pg`
- **DB**: `hub_beepeek`
- **Connection**: `postgresql://hub_beepeek:HubBeepeek2026pg@127.0.0.1:5432/hub_beepeek`
### PostgREST API (compatible con Supabase SDK)
- **URL**: `http://127.0.0.1:8443` (nginx proxy → PostgREST en puerto 3001)
- **JWT Secret**: `hub_beepeek_postgrest_jwt_s3cr3t_2026_Xk9mPqLwRt4vBn7y`
- **Anon Token**: `eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJyb2xlIjogImFub24iLCAiaXNzIjogInBvc3RncmVzdCIsICJpYXQiOiAxNzc1NDMzOTAyLCAiZXhwIjogMjIwODk4ODgwMH0.WHCLOAfVG12azmVj37OnVsK-xKlCpEG8g19BDgkpzHo`
- **Service Role Token**: `eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJyb2xlIjogInNlcnZpY2Vfcm9sZSIsICJpc3MiOiAicG9zdGdyZXN0IiwgImlhdCI6IDE3NzU0MzM5MDIsICJleHAiOiAyMjA4OTg4ODAwfQ.M3g6hxmBay2AlKLU-Fy7LEzldxwi26RnSB_FawY9QBY`
- **DB User (PostgREST)**: `authenticator` / `PostgREST2026auth!`
- **Roles**: `anon`, `authenticated`, `service_role` (todos creados)
- **Service**: `systemctl restart postgrest`
- **Config**: `/home/ubuntu/proyectos-cloud/postgrest/postgrest.conf`
- **RLS**: Todas las tablas tienen RLS activo + policy `*_auth_all` para `authenticated` (creado 07/04/2026)
- **Frontend SDK**: `src/lib/supabase.ts` apunta a `https://hub.beepeek.com` con anon key PostgREST (NO Supabase cloud)
### Supabase Legacy (mantener hasta confirmar que todo va bien)
- **Host**: `db.ecxqdcrxzlasfnonczbl.supabase.co`
- **Port**: `5432`
- **User**: `postgres`
- **Password**: `Gl2QMdWv7iDQn5mh`
- **DB**: `postgres`
- **Connection**: `postgresql://postgres:Gl2QMdWv7iDQn5mh@db.ecxqdcrxzlasfnonczbl.supabase.co:5432/postgres`
## Otras DBs locales en VPS
### BEE Invoice
- **Connection**: `postgresql://bee_invoice:BeeInvoice2026pg@127.0.0.1:5432/bee_invoice`
### Portal Clientes
- **Connection**: `postgresql://portal_user:PortalCli3ntes2026!@127.0.0.1:5432/portal_clientes`