Migrating Controller from port 8087 to 80 so that it is more discoverable. Reformatting Controller dashboard to make header at the top. Reformatting navigation bar to handle the new links which prevented Admin from being visible in some screens.

This commit is contained in:
Roland 2026-04-07 20:01:49 -06:00 • committed by lrnselfreliance
parent c316a178f9
commit e0324ce0fc
33 changed files with 302 additions and 407 deletions

View file

@ -5,23 +5,6 @@
auto_https disable_redirects
}
:80 {
handle / {
root * /var/www
rewrite * /landing.html
file_server
}
handle /ca.crt {
root * /opt/media/config/ssl
header Content-Type "application/x-x509-ca-cert"
header Content-Disposition "attachment; filename=\"wrolpi-ca.crt\""
file_server
}
handle {
redir https://{host}:8443{uri} permanent
}
}
:443 {
tls /etc/ssl/caddy/cert.crt /etc/ssl/caddy/cert.key
@ -55,7 +38,7 @@
# Controller - system management API and UI.
handle_path /controller/* {
reverse_proxy controller:8087
reverse_proxy controller:80
}
handle /controller {
redir * /controller/ 301
@ -115,7 +98,7 @@
}
handle_errors 502 503 504 {
redir * "http://{host}:8087/?fallback=true" 302
redir * "http://{host}:8080/?fallback=true" 302
}
}

View file

@ -6,7 +6,6 @@ RUN apk add --no-cache openssl bash
COPY docker/web/Caddyfile /etc/caddy/Caddyfile
COPY docker/web/entrypoint.sh /entrypoint.sh
COPY scripts/generate_certificates.sh /opt/wrolpi/scripts/generate_certificates.sh
COPY etc/raspberrypios/landing.html /var/www/landing.html
RUN chmod +x /entrypoint.sh /opt/wrolpi/scripts/generate_certificates.sh