Files
serverAppConfigs/dankclaw/Caddyfile
T
Frank 04112e88e6 fix: gitea boot persistence via quadlet (incident 2026-08-16)
unattended-upgrades rebooted dankclaw at 15:01; the legacy
podman-compose gitea stack had no systemd units, so rootless podman
did not auto-start the containers. Gitea was down ~1 hour.

- add quadlet units (dankclaw/gitea/quadlet/): gitea-postgres,
  gitea-server, gitea-caddy + gitea.network (DNS enabled; the default
  rootless podman network has dns_enabled=false)
- add gitea stack Caddyfile (upstream gitea-server:3000) and
  .env.example; live password stays in /opt/gitea/.env (0600)
- fix latent name bugs in main stack config: DATABASE_HOST
  gitea-postgres, Caddyfile upstream gitea-server
- docs: rewrite Gitea page for the quadlet stack (management, boot
  persistence, secrets, gotchas, incident log); fix port 3000 in
  stack table; Postgres connection notes
- legacy compose retired on target to /opt/gitea/.deprecated/
2026-08-16 18:31:38 -07:00

77 lines
1.3 KiB
Caddyfile

# Dankclaw Caddyfile
# Reverse proxy for the Dankclaw stack. Caddy runs as a container on the
# podman network; upstreams are container names. Homepage is password
# protected. Replace the bcrypt hashes below (caddy hash-password) at deploy.
{
admin off
email admin@dankclaw.local
}
# --- Homepage (password protected) ---
dankclaw.local {
basicauth {
dank $2a$14$REPLACE_WITH_HASH
}
root * /srv/homepage
file_server
}
# --- SearXNG (behind the Gluetun tunnel) ---
search.dankclaw.local {
basicauth {
dank $2a$14$REPLACE_WITH_HASH
}
reverse_proxy gluetun:8080
}
# --- ComfyUI ---
comfyui.dankclaw.local {
reverse_proxy comfyui:8188
}
# --- OpenWebUI ---
chat.dankclaw.local {
basicauth {
dank $2a$14$REPLACE_WITH_HASH
}
reverse_proxy openwebui:8080
}
# --- Hermes ---
hermes.dankclaw.local {
basicauth {
dank $2a$14$REPLACE_WITH_HASH
}
reverse_proxy hermes:8090
}
# --- Gitea (migrated) ---
gitea.dankclaw.local {
reverse_proxy gitea-server:3000
}
# --- Grafana ---
grafana.dankclaw.local {
basicauth {
dank $2a$14$REPLACE_WITH_HASH
}
reverse_proxy grafana:3000
}
# --- Prometheus ---
prometheus.dankclaw.local {
basicauth {
dank $2a$14$REPLACE_WITH_HASH
}
reverse_proxy prometheus:9090
}
# --- Loki ---
loki.dankclaw.local {
basicauth {
dank $2a$14$REPLACE_WITH_HASH
}
reverse_proxy loki:3100
}