Start work on own tls termination and http3 support
Some checks are pending
/ docker (push) Waiting to run

This commit is contained in:
Melody Becker 2025-05-26 17:10:46 +02:00
parent 4a2462e24e
commit 68d7a5e8c3
Signed by: mstar
SSH key fingerprint: SHA256:9VAo09aaVNTWKzPW7Hq2LW+ox9OdwmTSHRoD4mlz1yI
10 changed files with 634 additions and 698 deletions

View file

@ -20,6 +20,7 @@ var AllTypes = []any{
&RemoteServer{},
&RemoteServerMetadata{},
&Role{},
&ServerMetadata{},
&AccessToken{},
&LoginProcessToken{},
&User{},

View file

@ -0,0 +1,24 @@
package models
import (
"database/sql"
"time"
)
type ServerMetadata struct {
// Technically no id needed since expected to only ever store one entry in this table
Id uint64 `gorm:"primarykey"`
CreatedAt time.Time
UpdatedAt time.Time
// ---- Section TLS LetsEncrypt
LEDomain string
LECertUrl string
LECertStableUrl string
LEPrivateKey []byte // Encrypted
LECertificate []byte // Encrypted
LEIssuerCertificate []byte // Encrypted
LECSR []byte // Encrypted
LELastUpdate sql.NullTime
LEUserPrivKey []byte // Encrypted
}