Files
website/install.env
T
tobias 78d2ab2623 Status-Datei und Deploy-Hook-Pfad explizit in install.env statt implizit abgeleitet
Bisher wurde der Hook-Pfad aus dem letzten Segment von WEBSITE_REPO
abgeleitet, die Status-Datei war fix auf ~/deploy/status.json gesetzt.
Beides sieht pro Instanz eindeutig aus, ist es aber nicht: Live auf einer
Demo-Installation gefunden, bei der zwei Ableger-Instanzen auf demselben
Account beide denselben abgeleiteten Hook-Pfad (website.git) erhielten -
der Trigger-Button einer Instanz loeste den Deploy der anderen aus, die
Status-Seite zeigte dauerhaft 'kein Status vorhanden' statt echter Daten.

Neue optionale install.env-Werte DEPLOY_STATUS_FILE/DEPLOY_HOOK_PATH,
Default identisch zum bisherigen Standardfall (eine Instanz pro Server) -
nur bei mehreren Instanzen auf demselben Account muss man sie anpassen.
2026-08-23 15:19:21 +02:00

63 lines
2.9 KiB
Bash

# install.env
# Installation-specific values for the git server, domains, and deploy
# paths - the single source for scripts/generate-config.sh,
# scripts/sync-methoden.sh, and scripts/admin-status-server.rb. Adjust
# here on a fork instead of at the individual usage sites. Branding/text
# variables (provider, color, imprint/privacy links) live in
# hugo/hugo.toml [params] instead - those are plain Hugo values maintained
# directly there.
#
# Not a secret store: OAuth client secrets, cookie secrets etc. do NOT
# belong here, but in the server/deploy configuration (see the "Installation"
# chapter on the project website).
#
# EVERY value below is a placeholder - replace all of them with your own
# fork's values before deploying. See the project website's "Installation"
# chapter for the full step-by-step guide.
# Gitea/Forgejo instance that hosts your own fork of the methods repo
# (Decap CMS backend) and against which private mode also authenticates.
# GITEA_SSH_USER/-PORT are only needed as a fallback for local development
# (see scripts/sync-methoden.sh) - in the deploy hook, the source is
# instead explicitly overridden via ABLEGER_METHODEN_URL.
GITEA_DOMAIN="git.example.org"
GITEA_SSH_USER="dein-benutzername"
GITEA_SSH_PORT="22"
# Org/name of your fork of the methods repo (content, separate repo) and
# of this website/CMS code repo.
METHODEN_REPO="deine-org/ableger_methoden"
WEBSITE_REPO="deine-org/ableger"
# OAuth2 application that registers Decap CMS against your own Gitea
# instance above (public client/PKCE, no secret - see the "Installation"
# chapter on the project website for how to register one).
OAUTH_CLIENT_ID="deine-oauth-client-id"
# Domain your Hugo website runs live under. Must match baseURL in
# hugo/hugo.toml (maintained separately there - Hugo's own configuration
# file can't read this file itself).
WEBSITE_DOMAIN="ableger.example.org"
# Docroot on your deploy server that hugo/public/ and admin/ are copied
# into.
DEPLOY_DOCROOT="/pfad/zu/deinem/docroot"
# Port the admin status server (scripts/admin-status-server.rb) listens
# on.
STATUS_SERVER_PORT="4182"
# Path to the status file the deploy hook writes after every run, and to
# the deploy hook itself (invoked by the manual trigger button on
# /admin/status/). Must match the STATUS_FILE/HOOK paths used in your own
# post-receive hook script (see the "Installation" chapter, Schritt 7) -
# both default to a single-instance-per-server assumption below, which
# breaks if you ever run a second Ableger instance (or any other deploy
# pipeline whose bare-repo name happens to collide) on the same account:
# found live when two Ableger instances on one Uberspace account both
# derived the same "website.git" hook path from WEBSITE_REPO, so the
# newer instance's trigger button silently ran the OTHER instance's
# deploy. Only override these two if that applies to you.
DEPLOY_STATUS_FILE="~/deploy/status.json"
DEPLOY_HOOK_PATH="~/repos/website.git/hooks/post-receive"