From 42d5f92b2bc1138413f44222a7e24cdd098be5dd Mon Sep 17 00:00:00 2001 From: Benno Tielen Date: Wed, 24 Jun 2026 07:46:38 +0200 Subject: [PATCH] fix: padding --- infra/README.md | 35 ++++++++++++++++++++++++++++ src/pageComponents/Parish/Parish.tsx | 2 +- 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/infra/README.md b/infra/README.md index 1320b17..5a40cca 100644 --- a/infra/README.md +++ b/infra/README.md @@ -255,6 +255,41 @@ The Forgejo Actions workflow (`.forgejo/workflows/deploy.yml`) triggers on push --- +## Countdown Static Site (Caddy) + +`deploy-countdown.yml` provisions a **fresh standalone VPS** that serves only the +static `countdown.html` (repo root). It installs Caddy, uploads the page, and lets +Caddy obtain + auto-renew the TLS certificate for `hl-mutter-teresa-chemnitz.de` +and `www.hl-mutter-teresa-chemnitz.de`. + +```bash +cd infra/ansible + +# 1. Point the inventory at the VPS and confirm the domains +# edit inventory/countdown/hosts.yml -> ansible_host, countdown_domain, countdown_aliases + +# 2. Make sure DNS A/AAAA records for both names point at the VPS first +# (Caddy's ACME challenge needs them resolving), then run with the root +# password (--ask-pass needs `sshpass` installed locally): +ansible-playbook playbooks/deploy-countdown.yml -i inventory/countdown/hosts.yml --ask-pass +``` + +> Authenticating with the root password? Install `sshpass` first +> (`brew install hudochenkov/sshpass/sshpass` on macOS, `apt install sshpass` on +> Debian/Ubuntu). Once you've added an SSH key to the box you can drop +> `--ask-pass` and set `ansible_ssh_private_key_file` in the inventory instead. + +**What it does:** + +1. Installs Caddy + ufw (allows 22/80/443) +2. Uploads `countdown.html` to `/var/www/countdown/index.html` +3. Deploys a Caddyfile serving both domains; Caddy handles HTTPS automatically + +**Re-running** is the normal way to publish content changes — it re-uploads the +HTML and reloads Caddy. The certificate is managed entirely by Caddy. + +--- + ## Production Setup 1. Copy and edit the production inventory: diff --git a/src/pageComponents/Parish/Parish.tsx b/src/pageComponents/Parish/Parish.tsx index 646fbbb..bd6dc96 100644 --- a/src/pageComponents/Parish/Parish.tsx +++ b/src/pageComponents/Parish/Parish.tsx @@ -67,7 +67,7 @@ export const Parish = ( link={} /> -
+