feat(web): make footer legal links configurable

Add a "main.footer-links" config option so the footer Imprint and
Privacy Policy links can point at internal pages (default) or external
URLs. External http(s) targets open in a new tab; empty/unset values
fall back to the built-in /imprint and /privacy routes, keeping the
existing ./var/*.tmpl override mechanism intact.

Closes #517

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Entire-Checkpoint: c5dca72c848f
This commit is contained in:
2026-06-17 17:29:50 +02:00
parent 9d1efcd55d
commit 411bc9b317
6 changed files with 75 additions and 2 deletions

View File

@@ -37,6 +37,13 @@ cp privacy.tmpl /opt/monitoring/cc-backend/var/
# Ensure your logo, and any images you use in your login template has a suitable size.
cp -R img /opt/monitoring/cc-backend/img
# 4b. (Optional) Instead of overriding imprint.tmpl/privacy.tmpl, you can point the
# footer links to external pages via "main.footer-links" in config.json:
# "footer-links": { "imprint": "https://example.com/imprint", "privacy": "https://example.com/privacy" }
# Values may be internal paths (default "/imprint", "/privacy") or external URLs;
# external URLs (http/https) open in a new browser tab. An empty value falls back
# to the internal page.
# 5. Copy the systemd service unit file. You may adopt it to your needs.
sudo cp ./init/clustercockpit.service /etc/systemd/system/clustercockpit.service