Generating temporary certificate on first startup so Caddy can redirect user to Controller for onboarding flow.

This commit is contained in:
Roland 2026-03-22 13:19:57 -06:00
parent 755b133fa4
commit 63eff3f006
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
3 changed files with 38 additions and 13 deletions

View file

@ -0,0 +1,16 @@
# Pre-onboarding Caddyfile: temporary self-signed cert, no media drive.
# Redirects all traffic to the Controller UI for onboarding.
# Replaced by the full Caddyfile after onboarding + repair.
{
auto_https disable_redirects
}
:80 {
redir * http://{host}:8087/ 302
}
:443 {
tls /etc/ssl/wrolpi/cert.crt /etc/ssl/wrolpi/cert.key
redir * http://{host}:8087/ 302
}