add admin panel

This commit is contained in:
2026-02-13 19:44:00 +01:00
parent fb9bb2fc82
commit c672fccce3
11 changed files with 2185 additions and 255 deletions

View File

@@ -9,6 +9,7 @@ import (
)
// Config holds client-side configuration for connecting to the backup server.
// Note: Storage type is determined by the server, not the client.
type Config struct {
// ClientID is the unique identifier for this client
ClientID string `json:"client_id"`
@@ -20,8 +21,6 @@ type Config struct {
LocalDataset string `json:"local_dataset"`
// Compress enables gzip compression for transfers
Compress bool `json:"compress"`
// StorageType specifies the storage backend ("s3" or "local")
StorageType string `json:"storage_type"`
}
// LoadConfig loads client configuration from environment variables and .env file.
@@ -36,7 +35,6 @@ func LoadConfig() *Config {
ServerURL: getEnv("SERVER_URL", "http://backup-server:8080"),
LocalDataset: getEnv("LOCAL_DATASET", "tank/data"),
Compress: getEnv("COMPRESS", "true") == "true",
StorageType: getEnv("STORAGE_TYPE", "s3"),
}
}