refactor(API): ✨ Relspect integration
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user