Backend: - Audit-Log: Search-Endpoint mit ILIKE-Filter (actor/action/subject/date) - NTP: /ntp/status via chronyc tracking (Stratum, Offset, Quelle) - System: /service-restart mit Allowlist (haproxy/squid/unbound/chrony/scheduler) - Domain-Response-Headers + Rate-Limit (Migration 0024) - Join-Tokens (Migration 0025), Cluster-mTLS, Aggregator-Fan-Out - apt-Service für Update-Banner (apt-get update + Versionsprüfung) - Backup-Retry mit exponential backoff (retry_apt 3×) - publish.sh fail-fast + cleanup-old.sh (max 10 Versionen) Frontend: - Audit-Log-Page (/audit) mit Filter + Pagination - ErrorBoundary an React-Root + Vite build-target festgenagelt (iOS 15+) - Storage-Schema-Stamp: auto-wipe bei Versions-Mismatch (blank-page-Fix) - EmptyState-Komponente überall ausgerollt - SSL: Aggregate-Karte (total/expiring/expired/errors) - Backups: Aggregate-Karte (letzter Backup/Größe/Fehlschläge 24h) + Backup-Now - NTP: Sync-Status-Karte (chronyc tracking live) - Domains: Backend-UP/DOWN-Chip aus HAProxy-Stats - Backends: HAProxy-Status-Spalte (UP/DEGRADED/DOWN) - Settings: Service-Neustart-Karte (haproxy/squid/unbound/chrony/scheduler) - Settings: Upgrade-Status-Card, Wartungsmodus, Auto-Update, Retention - Dashboard: Recent-Alerts, Cluster-Health, License-Chip, Onboarding-Hint - System-Regeln im Firewall als eigener Tab Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
20 lines
868 B
Go
20 lines
868 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
// DomainResponseHeader stellt einen einzelnen HTTP-Response-Header dar,
|
|
// den HAProxy für alle Antworten einer Domain mit `http-response set-header`
|
|
// setzt. Mehrere Einträge pro Domain möglich; Name ist case-insensitive
|
|
// unique (siehe Migration 0024).
|
|
type DomainResponseHeader struct {
|
|
ID int64 `gorm:"primaryKey" json:"id"`
|
|
DomainID int64 `gorm:"column:domain_id" json:"domain_id"`
|
|
Name string `gorm:"column:name" json:"name"`
|
|
Value string `gorm:"column:value" json:"value"`
|
|
Position int `gorm:"column:position" json:"position"`
|
|
CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
|
|
UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
|
|
}
|
|
|
|
func (DomainResponseHeader) TableName() string { return "domain_response_headers" }
|