What the stack is, in git: .env committed, the secrets on the host

.env is what `podman compose` reads as is: the hosts, the versions and
where the content comes from, so moving to tomtervel.no or bumping portal
is a commit that the deploy workflow brings up. Nothing in it is secret.

The secrets stay on kasse in secrets.env (the old .env's NATS password,
OAuth2 secret and first person), and what the scripts render from it.
gdo and the chat get NATS_URL from nats.env instead of interpolating
the password, and portal takes its URLs and content settings from .env
over portal.env, so a new host name reaches it without re-running
bootstrap.sh. The deploy script on kasse is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L5fbDmSQSb6u27EiEuwzoM
This commit is contained in:
blandClaude Opus 5.5 committed 2026-11-07 16:29:55 +01:00
1 parent 213ef712c7
commit a76e6321ee
9 files changed
+125 -83

No files matched your search

+45
View File
@@ -0,0 +1,45 @@
# The vel's stack as it is meant to run: hosts, versions, where the
# content comes from. Committed, and read by `podman compose` as is, so a
# change here is a reviewed commit and a push to main deploys it.
#
# Nothing secret goes here: the repo is public. The secrets are in
# secrets.env, portal.env, nats.env and chat.env on the host, made there
# by bootstrap.sh and kanidm-setup.sh (see secrets.env.example).
# Where the site, the login and the chat are served. Each needs an A
# record pointing here (dns/dnsconfig.js) and a block in kasse's Caddy.
PORTAL_HOST=vel.klingenbergbygg.no
ID_HOST=id.vel.klingenbergbygg.no
CHAT_HOST=chat.vel.klingenbergbygg.no
# Versions. A bump is the upgrade.
# portal: a tag of https://project.uhhm.no/uhhm/portal; keep the content
# repo's lint (PORTAL_RELEASE in its lint-and-reload.yml) on the same one.
PORTAL_RELEASE=v0.13.0
# gdo: a tag of https://project.uhhm.no/uhhm/gdo. It hands the vel's mail
# to kasse's postfix.
GDO_RELEASE=v0.2.0
# cnats, the chat: a bendik/cnats tag on Docker Hub, above 0.4.0.
CNATS_TAG=0.4.2
# kron, the money service: a bendik/kron tag on Docker Hub.
KRON_RELEASE=0.1.0
COMPOSE_PROFILES=chat
# The content this instance serves, and reloads live on every push.
CONTENT_REPO=https://prosjekt.klingenbergbygg.no/tomtervel/questions
CONTENT_BRANCH=main
# The namespace of everything the site keeps on NATS. Must not change: a
# new name is a new, empty site.
SITE_NAME=tomtervel
# Who is who. `memberships`: portal keeps the groups itself, and Kanidm
# only makes the accounts. Everyone a page names as responsible joins
# RESPONSIBLE_GROUP.
PEOPLE_BACKEND=memberships
RESPONSIBLE_GROUP=redaktor
OAUTH2_CLIENT_ID=tomtervel-portal
# A project Gitea that RESPONSIBLE_GROUP may sign in to with the same
# account (kanidm-setup.sh makes its client). Empty: no Gitea.
GITEA_URL=https://prosjekt.klingenbergbygg.no
GITEA_AUTH_NAME=tomtervel