mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-01 20:36:21 -05:00
Generating temporary certificate on first startup so Caddy can redirect user to Controller for onboarding flow.
This commit is contained in:
parent
755b133fa4
commit
63eff3f006
3 changed files with 38 additions and 13 deletions
16
etc/raspberrypios/Caddyfile.onboarding
Normal file
16
etc/raspberrypios/Caddyfile.onboarding
Normal 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue