Add remote instance management functionality and configuration support

This commit is contained in:
2025-09-30 21:09:05 +02:00
parent 1e5e86d2c3
commit 2759be65a5
5 changed files with 268 additions and 0 deletions

View File

@@ -41,6 +41,7 @@ type AppConfig struct {
Backends BackendConfig `yaml:"backends"`
Instances InstancesConfig `yaml:"instances"`
Auth AuthConfig `yaml:"auth"`
Nodes []NodeConfig `yaml:"nodes,omitempty"`
Version string `yaml:"-"`
CommitHash string `yaml:"-"`
BuildTime string `yaml:"-"`
@@ -125,6 +126,12 @@ type AuthConfig struct {
ManagementKeys []string `yaml:"management_keys"`
}
type NodeConfig struct {
Name string `yaml:"name"`
Address string `yaml:"address"`
APIKey string `yaml:"api_key,omitempty"`
}
// LoadConfig loads configuration with the following precedence:
// 1. Hardcoded defaults
// 2. Config file