6eb75204b6
New controller features:
- Web-based setup wizard replaces docker-setup.sh interactive config
- Dual listener: :8080 (Traefik) + :8081 (direct HTTP for LAN)
- Drive scanner finds .felhom-infra-backup/ on all block devices
- Hub recovery pull (GET /api/v1/recovery/{id}) with retrieval password
- Fresh install: Hub config download or manual wizard
- CSRF protection, state persistence, Hungarian UI
- Local infra backup written to all connected drives after each backup cycle
- .felhom-infra-backup/backup.json + metadata.json with SHA256 checksum
- Hub verification: parse customer_blocked from report push response
- Limited mode after 7 days without verification
- Recovery info page on Settings + recovery-info.txt file generation
- Pending events queue: DR events sent to Hub on next report push
- docker-setup.sh v6.0.0: removed interactive wizard, minimal controller.yaml only
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
47 lines
2.0 KiB
HTML
47 lines
2.0 KiB
HTML
{{define "setup_fresh_hub"}}
|
|
<!DOCTYPE html>
|
|
<html lang="hu">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Új telepítés — Felhom</title>
|
|
<link rel="stylesheet" href="/static/style.css">
|
|
</head>
|
|
<body class="login-body">
|
|
<div class="setup-container">
|
|
<div class="setup-header">
|
|
<img src="/static/felhom-logo.svg" alt="Felhom.eu" style="width: 120px;">
|
|
<h1>Új telepítés</h1>
|
|
<p style="color: var(--text-secondary, #8b949e);">Konfiguráció letöltése a Hub-ról.</p>
|
|
</div>
|
|
|
|
{{if .Error}}<div class="alert alert-error">{{.Error}}</div>{{end}}
|
|
|
|
<div class="setup-card">
|
|
<form method="POST" action="/setup/fresh">
|
|
<input type="hidden" name="_csrf" value="{{.CSRF}}">
|
|
<div class="form-group">
|
|
<label for="customer_id">Ügyfél-azonosító</label>
|
|
<input type="text" id="customer_id" name="customer_id" class="form-control"
|
|
value="{{.CustomerID}}" required autofocus placeholder="pl. kiscsalad-bp">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="password">Visszaállítási jelszó</label>
|
|
<input type="password" id="password" name="password" class="form-control"
|
|
required placeholder="A Hub-on beállított jelszó">
|
|
</div>
|
|
<div style="display: flex; gap: 0.75rem; margin-top: 1.5rem;">
|
|
<button type="submit" class="btn btn-primary">Letöltés</button>
|
|
<a href="/setup" class="btn btn-outline">Vissza</a>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<p style="text-align: center; margin-top: 1rem;">
|
|
<a href="/setup/manual" style="color: var(--text-secondary, #8b949e); font-size: 0.85rem;">Nincs Hub hozzáférés? Kézi beállítás →</a>
|
|
</p>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
{{end}}
|