restore
This commit is contained in:
@@ -19,7 +19,8 @@ type Config struct {
|
||||
// LocalDataset is the ZFS dataset to backup
|
||||
LocalDataset string `json:"local_dataset"`
|
||||
// Compress enables LZ4 compression for transfers
|
||||
Compress bool `json:"compress"`
|
||||
Compress bool `json:"compress"`
|
||||
UploadURL string `json:upload_url`
|
||||
}
|
||||
|
||||
// LoadConfig loads client configuration from environment variables and .env file.
|
||||
@@ -34,6 +35,7 @@ func LoadConfig() *Config {
|
||||
ServerURL: getEnv("SERVER_URL", "http://localhost:8080"),
|
||||
LocalDataset: getEnv("LOCAL_DATASET", "tank/data"),
|
||||
Compress: getEnv("COMPRESS", "true") == "true",
|
||||
UploadURL: "/upload-stream/",
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user