vienalatina/infra/board/.env.example
Claude cb034120e0
The deploy names what your .env has that nothing reads
A screenshot of /srv/board/.env showed the whole diagnosis at once: no
CONTENT_TOKEN line, so the app falls back to the admin token and Gitea answers
403 — and two live OAuth credentials for a login flow deleted two phases ago,
sitting there because the deploy never touches .env and never will.

So it names them. The check is the mirror of the one already there: settings in
.env that .env.example no longer documents, found with `comm -13` over the same
two sorted lists. A commented-out line in the example counts as undocumented,
which is how a setting is retired — comment it there, and the next deploy says
it is still on the server. Nothing is rewritten; deleting a line from a file
holding secrets is a decision, not a cleanup.

The "missing" warning also grew consequences. It has been listing CONTENT_TOKEN
as one bare name among several since it was added, which is easy to scroll past;
it now reads "CONTENT_TOKEN — el editor no puede publicar nada en el sitio",
sharing one note_for helper with the empty-value warning below it so the two
cannot drift.

And .env.example stops describing a job GITEA_ADMIN_TOKEN no longer has. It says
what is true now: members have no accounts on the git server, nothing in the
members area calls it, and it CANNOT publish, because Gitea's scopes are per
category and `admin` does not contain `repository`. That sentence is the one
that was missing while the editor sat unable to commit and looking configured.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NizVpJ2dwzCbjCrTLCjeHn
2026-09-30 14:53:00 +00:00

51 lines
2.2 KiB
Plaintext

# Copy to .env next to docker-compose.yml and fill in. Never commit .env.
#
# openssl rand -hex 32
BOARD_SECRET_KEY=
# NOT USED ANY MORE. Members sign in on vienalatina.com against a password
# stored here, so there is no OAuth application and nothing to configure.
# Leaving these lines in your .env is harmless; the OAuth application itself
# can be deleted in Gitea.
#BOARD_OAUTH_CLIENT_ID=
#BOARD_OAUTH_CLIENT_SECRET=
# Gitea username of the first and only owner. Applied once, to an empty
# database, and ignored afterwards.
BOARD_OWNER=pablo
# Optional, and by now almost certainly unnecessary. It could create accounts on
# the git server for new members, back when a member needed one to sign in. They
# do not: a password lives in this app's own database. Nothing in the members
# area calls it any more.
#
# It CANNOT publish. Gitea's token scopes are per category and `admin` does not
# contain `repository`, so a site-admin token gets a 403 from the contents API —
# leaving this filled in and CONTENT_TOKEN empty is how the editor ends up unable
# to commit a single post while looking configured.
#
# Fill in CONTENT_TOKEN below, then revoke this one: it can create and modify
# every account on the instance, and anything that can read this file can use it.
GITEA_ADMIN_TOKEN=
# What the content editor commits with. Members sign in here, on
# vienalatina.com, and have no account on the git server at all — so this is
# the only credential that touches it, and it only needs `write:repository` on
# the site repository. Left empty it falls back to GITEA_ADMIN_TOKEN, which
# works but grants far more than publishing a post requires.
CONTENT_TOKEN=
# Outgoing mail, for invitations and password resets. Without it an admin can
# still add members, but nobody can be invited and nobody can recover a
# password — which is the whole reason members could not get in before.
#
# These are the SMTP details of the hola@vienalatina.com mailbox. Port 465 means
# MAIL_SECURITY=ssl; port 587 means starttls. Using the wrong one of the pair is
# the usual reason a mailbox that works in a mail client fails here.
MAIL_HOST=
MAIL_PORT=587
MAIL_SECURITY=starttls
MAIL_USER=hola@vienalatina.com
MAIL_PASSWORD=
MAIL_FROM=Viena Latina <hola@vienalatina.com>