7faa9098de
Restructure around a single entry point (automations.sh) with a Gum wizard and a self-extracting bundle for repo-less installs. Add scripts/oslib.sh so the provisioning scripts (setup-host, harden-ssh, harden-jumphost, sshuser) run on Alpine/Debian/Alma; seed root keys from globals/. - ntfy SSH-login alerts (user, source IP, key, region, jump target) via pam_exec - daily auto-updates with AUTO_REBOOT=idle (reboots only when no SSH active) and opt-in Alpine stable-branch upgrades - generic + per-deployment cloud-init; Gitea release workflow on tag - README/LICENSE/.gitignore/.gitattributes (force LF); repo URLs -> Gitea
35 lines
802 B
Caddyfile
35 lines
802 B
Caddyfile
# Caddyfile for beszel stack.
|
|
#
|
|
# Auto-issues a Let's Encrypt cert for $BESZEL_DOMAIN and reverse-proxies
|
|
# to the beszel hub on :8090. Agents and the web UI both go through this.
|
|
{
|
|
email {$ACME_EMAIL}
|
|
}
|
|
|
|
{$BESZEL_DOMAIN} {
|
|
encode zstd gzip
|
|
|
|
reverse_proxy beszel:8090 {
|
|
header_up X-Real-IP {http.request.remote.host}
|
|
# WebSocket / long-lived agent push streams.
|
|
flush_interval -1
|
|
transport http {
|
|
read_timeout 10m
|
|
write_timeout 10m
|
|
}
|
|
}
|
|
|
|
header {
|
|
Strict-Transport-Security "max-age=31536000; includeSubDomains"
|
|
X-Content-Type-Options "nosniff"
|
|
Referrer-Policy "strict-origin-when-cross-origin"
|
|
-Server
|
|
}
|
|
|
|
log {
|
|
output stdout
|
|
format console
|
|
}
|
|
}
|