fix archiver url

This commit is contained in:
David Christofas
2022-04-25 15:44:43 +02:00
parent 89b925f34a
commit 82bbb9fca3
2 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ func Frontend(cfg *config.Config) *cli.Command {
"enabled": true, "enabled": true,
"version": "2.0.0", "version": "2.0.0",
"formats": []string{"tar", "zip"}, "formats": []string{"tar", "zip"},
"archiver_url": cfg.Archiver.URL, "archiver_url": path.Join("/", cfg.Archiver.Prefix),
"max_num_files": strconv.FormatInt(cfg.Archiver.MaxNumFiles, 10), "max_num_files": strconv.FormatInt(cfg.Archiver.MaxNumFiles, 10),
"max_size": strconv.FormatInt(cfg.Archiver.MaxSize, 10), "max_size": strconv.FormatInt(cfg.Archiver.MaxSize, 10),
}, },
+2 -3
View File
@@ -76,9 +76,8 @@ type Auth struct {
} }
type Archiver struct { type Archiver struct {
MaxNumFiles int64 `yaml:"max_num_files"` MaxNumFiles int64 `yaml:"max_num_files"`
MaxSize int64 `yaml:"max_size"` MaxSize int64 `yaml:"max_size"`
URL string `yaml:"url"`
Prefix string Prefix string
Insecure bool Insecure bool
} }