1e8a562bd3
docker-setup.sh --hub-customer now generates a minimal controller.yaml (no customer.id) instead of installing full hub config, triggering the setup wizard on first run. Hub credentials are passed via env vars (FELHOM_SETUP_CUSTOMER_ID, FELHOM_SETUP_PASSWORD) so the wizard auto-fills and auto-processes Hub API calls. Welcome page shows three options in hub mode: restore from Hub (primary), restore from local drives, or fresh install. On error, falls back to manual form with error displayed. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
59 lines
2.6 KiB
HTML
59 lines
2.6 KiB
HTML
{{define "setup_welcome"}}
|
|
<!DOCTYPE html>
|
|
<html lang="hu">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Felhom Szerver Beállítás</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>Felhom Szerver Beállítás</h1>
|
|
<p style="color: var(--text-secondary, #8b949e); font-size: 0.85rem;">{{.Version}}</p>
|
|
</div>
|
|
|
|
{{if .AccessURLs}}
|
|
<div class="info-box">
|
|
Ez az oldal elérhető:
|
|
{{range .AccessURLs}}<br>{{.}}{{end}}
|
|
</div>
|
|
{{end}}
|
|
|
|
{{if .HubMode}}
|
|
<div class="alert alert-info" style="margin-bottom: 1.5rem;">
|
|
Hub-mód: <strong>{{.HubCustomerID}}</strong> — az azonosító és jelszó automatikusan betöltődik.
|
|
</div>
|
|
|
|
<a href="/setup/hub-restore" class="setup-card" style="display: block; text-decoration: none; color: inherit; border-color: var(--accent-blue, #0088cc);">
|
|
<h3>Visszaállítás a Hub-ról</h3>
|
|
<p>A Hub-on tárolt infrastruktúra mentés visszaállítása (beállítások, titkosítási kulcsok, lemez-kiosztás).</p>
|
|
</a>
|
|
|
|
<a href="/setup/scan" class="setup-card" style="display: block; text-decoration: none; color: inherit;">
|
|
<h3>Visszaállítás helyi meghajtóról</h3>
|
|
<p>Csatlakoztatott meghajtók keresése infrastruktúra mentésért.</p>
|
|
</a>
|
|
|
|
<a href="/setup/fresh" class="setup-card" style="display: block; text-decoration: none; color: inherit;">
|
|
<h3>Friss telepítés</h3>
|
|
<p>Új konfiguráció letöltése a Hub-ról. Korábbi beállítások nem állítódnak vissza.</p>
|
|
</a>
|
|
{{else}}
|
|
<a href="/setup/scan" class="setup-card" style="display: block; text-decoration: none; color: inherit;">
|
|
<h3>Visszaállítás mentésből</h3>
|
|
<p>Rendszerhiba utáni visszaállítás helyi meghajtóról vagy a Hub-ról. Válassza ezt, ha az operációs rendszert újratelepítette.</p>
|
|
</a>
|
|
|
|
<a href="/setup/fresh" class="setup-card" style="display: block; text-decoration: none; color: inherit;">
|
|
<h3>Új telepítés</h3>
|
|
<p>Új ügyfél beállítása. Konfiguráció letöltése a Hub-ról vagy kézi beállítás.</p>
|
|
</a>
|
|
{{end}}
|
|
</div>
|
|
</body>
|
|
</html>
|
|
{{end}}
|