refactor(API): Relspect integration
Some checks failed
CI / Test (1.23) (push) Failing after -22m46s
CI / Test (1.22) (push) Failing after -22m32s
CI / Build (push) Failing after -23m30s
CI / Lint (push) Failing after -23m12s

This commit is contained in:
Hein
2026-02-05 13:39:43 +02:00
parent 71f26c214f
commit f9773bd07f
33 changed files with 7512 additions and 58 deletions

View File

@@ -25,6 +25,7 @@ type ServerConfig struct {
Username string `json:"username,omitempty"`
Password string `json:"password,omitempty"`
AuthKey string `json:"auth_key,omitempty"`
JWTSecret string `json:"jwt_secret,omitempty"` // Secret for JWT signing
TLS TLSConfig `json:"tls,omitempty"`
}
@@ -152,7 +153,10 @@ func Load(path string) (*Config, error) {
cfg.Server.Host = "0.0.0.0"
}
if cfg.Server.Port == 0 {
cfg.Server.Port = 8825
cfg.Server.Port = 8080
}
if cfg.Server.JWTSecret == "" {
cfg.Server.JWTSecret = "change-me-in-production" // Default for development
}
if cfg.Media.DataPath == "" {
cfg.Media.DataPath = "./data/media"