From 3f2ff0c56388dac2434609ba5497ec8c4320e007 Mon Sep 17 00:00:00 2001 From: Collina Systems Date: Sat, 4 Jul 2026 19:54:19 -0600 Subject: [PATCH] =?UTF-8?q?feat(panel):=20panel.html=20completo=20+=20fix?= =?UTF-8?q?=20perms=20del=20dir=20de=20est=C3=A1ticos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - panel.html: login con guardia de sesión, vista de becarios (avance vs meta calculado por backend, cola de dispositivos pendientes, alta/edición/ baja) y vista por becario (jornadas editables, cerrar revisión, ajustes) - fix: el dir /usr/share/nginx/html quedaba en 0644 por COPY --chmod al dir, nginx no podía traverse (Permission denied). Bug latente de Fase A (nunca se sirvió un estático vía nginx, solo /api/health por proxy). --- backend/Dockerfile | 9 +- frontend/panel.html | 527 ++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 520 insertions(+), 16 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 6208b0c..44702db 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -17,9 +17,12 @@ RUN npm ci --omit=dev COPY --chown=node:node backend/src ./src # Frontend + config nginx horneados. -# --chmod garantiza lectura por el usuario nginx en runtime, -# independientemente de los permisos del archivo fuente en el host. -COPY --chmod=644 frontend/checada.html frontend/panel.html /usr/share/nginx/html/ +# El directorio debe quedar 0755 (traverse) para que el usuario nginx pueda +# stat/leer los archivos; copiar con `--chmod=644 … /dir/` deja el propio +# directorio en 0644 y nginx falla con "Permission denied". Por eso se fijan +# los permisos explícitamente después del COPY. +COPY frontend/checada.html frontend/panel.html /usr/share/nginx/html/ +RUN chmod 755 /usr/share/nginx/html && chmod 644 /usr/share/nginx/html/*.html COPY --chmod=644 backend/nginx-default.conf /etc/nginx/http.d/default.conf COPY --chmod=755 backend/docker-entrypoint.sh /docker-entrypoint.sh diff --git a/frontend/panel.html b/frontend/panel.html index ce7567f..72116cb 100644 --- a/frontend/panel.html +++ b/frontend/panel.html @@ -1,19 +1,520 @@ - - - Taboada — Panel de supervisión - + + +Taboada — Panel de supervisión + + + - -
-

Taboada — Panel de supervisión

-

Panel en construcción (Fase B).

-
+ +
+