Your screenshot: everything green except «Copias de seguridad — No hay carpeta de copias. /srv/board/backups no existe.» The folder exists. `scripts/backup-board.sh` writes to it and `deploy-board.sh` had run it twenty seconds before that page rendered. The check read a **host** path from **inside the container**. The compose file mounts `./data:/data` and nothing else, so `/srv/board/data` is visible as `/data` and `/srv/board/backups` is visible nowhere; `_backups()` asked for a path that cannot exist in that filesystem and faithfully reported that it did not. Mine, and bad in a specific way: a diagnostic page that cries wolf about backups is a page you learn to scroll past, which is the one habit it exists to prevent. The folder is now mounted at `/backups`, **read-only** — that page reports on these files and must never be able to touch them. `deploy-board.sh` already syncs the compose file, so the mount arrives with the next deploy and needs nothing done by hand. A box that has never run a backup still answers truthfully rather than crashing: Compose creates a missing bind-mount source as an empty directory, and an empty folder reads as «Ninguna copia de seguridad», which is the real alarm. The second panel was accurate and read worse than it was. CONTENT_REPO is genuinely unset on your server and publishing works, because app.py defaults it to pablo/vienalatina. The panel now separates "absent and nothing works" from "absent and defaulted", naming the value in force for the second kind — merging those two is how a page full of orange teaches somebody to ignore orange. The value is read back out of `current_app.config` rather than restated, so the page and the app cannot disagree about it. 633 tests pass. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NizVpJ2dwzCbjCrTLCjeHn
69 lines
3.0 KiB
YAML
69 lines
3.0 KiB
YAML
# Members area — Flask + SQLite behind Caddy.
|
|
#
|
|
# Copy this directory to /srv/board/ on the server, fill in .env, then:
|
|
# mkdir -p /srv/board/data && sudo chown 1000:1000 /srv/board/data
|
|
# docker compose up -d
|
|
#
|
|
# Bound to localhost like Gitea and Woodpecker: the only way in from outside is
|
|
# through Caddy, which terminates TLS and forwards /comunidad/.
|
|
|
|
services:
|
|
board:
|
|
image: vienalatina/board:1
|
|
restart: unless-stopped
|
|
environment:
|
|
# Session signing key. Generate once with `openssl rand -hex 32`.
|
|
# Changing it signs everyone out; losing it means nothing worse.
|
|
- BOARD_SECRET_KEY=${BOARD_SECRET_KEY}
|
|
|
|
# Where the site's content lives. Members never see it: they sign in
|
|
# here, against a password in our own database.
|
|
- GITEA_URL=https://git.vienalatina.com
|
|
- BOARD_BASE_URL=https://vienalatina.com
|
|
|
|
# The Gitea username that becomes the one owner, applied once on an empty
|
|
# database. Changing it later does nothing: ownership moves from inside
|
|
# the app, so nobody can take it by editing this file.
|
|
- BOARD_OWNER=${BOARD_OWNER}
|
|
|
|
# Site-admin token, used only to create Gitea accounts for new members.
|
|
# This is the most privileged secret on the box after Gitea's own
|
|
# database: anything that can read this environment can create accounts.
|
|
# Leave it empty to run without account creation — admins then add people
|
|
# who already have a Gitea login, and everything else still works.
|
|
- GITEA_ADMIN_TOKEN=${GITEA_ADMIN_TOKEN:-}
|
|
- CONTENT_TOKEN=${CONTENT_TOKEN:-}
|
|
|
|
- BOARD_DB=/data/board.db
|
|
|
|
# Outgoing mail, for invitations and password resets. Empty MAIL_HOST is
|
|
# a supported state: the members area still works, but nobody can be
|
|
# invited or recover a password, and the screens say so.
|
|
#
|
|
# Every one of these has to be listed here. Compose does not hand the
|
|
# contents of .env to the container by itself — it only substitutes into
|
|
# this file — so a variable added to .env and not added here is read by
|
|
# nobody, and the app reports mail as unconfigured with the settings
|
|
# sitting right there on disk.
|
|
- MAIL_HOST=${MAIL_HOST:-}
|
|
- MAIL_PORT=${MAIL_PORT:-587}
|
|
- MAIL_SECURITY=${MAIL_SECURITY:-starttls}
|
|
- MAIL_USER=${MAIL_USER:-}
|
|
- MAIL_PASSWORD=${MAIL_PASSWORD:-}
|
|
- "MAIL_FROM=${MAIL_FROM:-Viena Latina <hola@vienalatina.com>}"
|
|
|
|
volumes:
|
|
- ./data:/data
|
|
# The backups, read-only, so Gestión → Estado del sistema can say whether
|
|
# there are any and how old they are. Read-only deliberately: that page
|
|
# reports on these files and must never be able to touch them — a
|
|
# diagnostic screen that can delete what it measures is a worse failure
|
|
# than no screen.
|
|
#
|
|
# Without this the check reads /srv/board/backups from inside a container
|
|
# that mounts only ./data, finds nothing, and cries wolf about the one
|
|
# thing you most want to be true.
|
|
- ./backups:/backups:ro
|
|
ports:
|
|
- "127.0.0.1:8080:8080"
|