Separate dashboard port, first-run password setup and default trusted proxies

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
TomandClaude Opus 5.5 committed 2026-11-14 17:21:49 +01:00
1 parent a34ff96490
commit c22d452720
25 files changed
+654 -109

No files matched your search

@@ -14,6 +14,7 @@
@inject IConfiguration Configuration
@inject RuntimeSettingsStore Store
@inject AdminAuthenticator Admin
@inject IOptions<PortOptions> Ports
@inject NavigationManager Navigation
<PageTitle>Flypaper · Einstellungen</PageTitle>
@@ -42,7 +43,7 @@ else if (Saved == "reset")
<InputTextArea id="trap-paths" @bind-Value="Model!.TrapPaths" rows="10" class="mono" />
<FieldError Errors="_errors" Field="@nameof(SettingsModel.TrapPaths)" />
<label for="hosts">Zusätzliche bekannte Hosts <span class="muted">(einer pro Zeile, z. B. beispiel.de oder *.beispiel.de)</span></label>
<label for="hosts">Bekannte Hosts <span class="muted">(einer pro Zeile, z. B. beispiel.de oder *.beispiel.de; werden auf dem Fallen-Port nur bei Fallenpfaden gefangen, sonst 404)</span></label>
<InputTextArea id="hosts" @bind-Value="Model!.ExtraKnownHosts" rows="4" class="mono" />
<FieldError Errors="_errors" Field="@nameof(SettingsModel.ExtraKnownHosts)" />
@@ -89,6 +90,8 @@ else if (Saved == "reset")
<TrapDataSection />
<PasswordSection />
<section class="card">
<h2>Nur per Umgebungsvariable</h2>
<p class="muted">Gelten ab Containerstart und lassen sich hier nicht ändern.</p>
@@ -97,7 +100,8 @@ else if (Saved == "reset")
<tr><th>Datenbank</th><td class="mono">@DatabasePath</td></tr>
<tr><th>Bekannte Hosts</th><td class="mono">@Format(Configuration.GetSection("Flypaper:Http:KnownHosts").Get<string[]>())</td></tr>
<tr><th>Vertrauenswürdige Proxies</th><td class="mono">@Format(Configuration.GetSection("Flypaper:Http:TrustedProxies").Get<string[]>())</td></tr>
<tr><th>Admin-Passwort</th><td>@(Admin.IsConfigured ? "gesetzt" : "nicht gesetzt")</td></tr>
<tr><th>Admin-Passwort</th><td>@(Admin.UsesEnvironmentPassword ? "per Umgebungsvariable" : "im Dashboard festgelegt")</td></tr>
<tr><th>Ports</th><td class="mono">Falle @Ports.Value.Trap, Dashboard @Ports.Value.Dashboard</td></tr>
</tbody>
</table>
</section>