First real commit

This commit is contained in:
Stanislav Hubacek
2026-04-04 23:44:32 +02:00
parent 5c5ecf506a
commit 98320fc827
2 changed files with 113 additions and 0 deletions

17
scripts/deploy_caddy.sh Normal file → Executable file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -euo pipefail
BASE="/opt/homelab"
GENERATOR="$BASE/generate_caddy.py"
CADDYFILE="/etc/caddy/Caddyfile"
echo "[1/4] Generating Caddy fragments..."
python3 "$GENERATOR"
echo "[2/4] Validating Caddy config..."
caddy validate --config "$CADDYFILE"
echo "[3/4] Reloading Caddy..."
systemctl reload caddy
echo "[4/4] Done."