Deploy path: pasar las variables de supervisión, o no hay panel que supervisar
Publish Docker images / build (., ./web/Dockerfile, web) (push) Canceled after 0s
Publish Docker images / build (./api, ./api/Dockerfile, api) (push) Canceled after 0s

"¿Cómo superviso los usuarios que se han creado, los que están logueados y todo eso?" — no se podía,
y la causa era de despliegue: `ADMIN_UIDS` es la ÚNICA forma de ser admin (nada en el código pone
`user.admin`), y este compose lista el entorno variable por variable, así que llegaba al host y nunca
al contenedor. Sin ella el servidor no ofrece `/api/admin/*`, `/api/me` responde `admin: false`, y la
fila "Admin dashboard" no aparece en Ajustes: el panel existe y no hay puerta.

Ahora el compose pasa las diez que faltaban: `ADMIN_UIDS`, `INVITE_ONLY`, `ALLOW_GUEST`,
`SESSION_DAYS` (los interruptores de la instancia) y `AUDIT_LOG`, `AUDIT_MAX`, `AUDIT_DAYS`,
`AUDIT_IP` (los límites del registro de actividad), más `VAPID_SUBJECT` y `REMINDER_TICK_MS`. Con los
`:-` de siempre: una instancia que no las ponga queda exactamente como estaba.

`docs/SELF_HOSTING.md` dice ahora, en el paso donde se habla de `ADMIN_UIDS`, que es la única puerta
de entrada al panel y cómo leer los ids de una instancia que ya corre (un `node -e` sobre db.json
dentro del contenedor, sin instalar nada).
This commit is contained in:
dsantillan committed 2026-09-23 19:48:36 -04:00
1 parent 91606d9c9e
commit cc257d2671
2 files changed
+28 -1

No files matched your search

+15
View File
@@ -118,6 +118,21 @@ services:
# file, so `COACH_PROVIDER` sitting in the panel while the container never sees it is a
# configuration that looks applied and does nothing. The `:-` defaults are what keep an
# instance that sets none of them exactly as it was: an empty value reads as unset.
#
# ADMIN_UIDS is the one that bites hardest: it is the ONLY way to become an admin (nothing in
# the code sets `user.admin`), and without it named here an instance has no dashboard at all —
# no user list, no activity log, no invites, and the "Admin dashboard" row never appears in
# Settings. The rest of these are the instance's own switches and the activity log's bounds.
ADMIN_UIDS: ${ADMIN_UIDS:-}
INVITE_ONLY: ${INVITE_ONLY:-}
ALLOW_GUEST: ${ALLOW_GUEST:-}
SESSION_DAYS: ${SESSION_DAYS:-}
AUDIT_LOG: ${AUDIT_LOG:-}
AUDIT_MAX: ${AUDIT_MAX:-}
AUDIT_DAYS: ${AUDIT_DAYS:-}
AUDIT_IP: ${AUDIT_IP:-}
VAPID_SUBJECT: ${VAPID_SUBJECT:-}
REMINDER_TICK_MS: ${REMINDER_TICK_MS:-}
COACH_PROVIDER: ${COACH_PROVIDER:-}
COACH_BASE_URL: ${COACH_BASE_URL:-}
COACH_MODEL: ${COACH_MODEL:-}