From 82bbb9fca3c09eb1dd02a5078ac346e8c3d978c2 Mon Sep 17 00:00:00 2001 From: David Christofas Date: Mon, 25 Apr 2022 15:42:48 +0200 Subject: [PATCH] fix archiver url --- extensions/frontend/pkg/command/command.go | 2 +- extensions/frontend/pkg/config/config.go | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/extensions/frontend/pkg/command/command.go b/extensions/frontend/pkg/command/command.go index 21dc44e9be..98d0c49122 100644 --- a/extensions/frontend/pkg/command/command.go +++ b/extensions/frontend/pkg/command/command.go @@ -65,7 +65,7 @@ func Frontend(cfg *config.Config) *cli.Command { "enabled": true, "version": "2.0.0", "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_size": strconv.FormatInt(cfg.Archiver.MaxSize, 10), }, diff --git a/extensions/frontend/pkg/config/config.go b/extensions/frontend/pkg/config/config.go index c237f19039..a5a1b55c77 100644 --- a/extensions/frontend/pkg/config/config.go +++ b/extensions/frontend/pkg/config/config.go @@ -76,9 +76,8 @@ type Auth struct { } type Archiver struct { - MaxNumFiles int64 `yaml:"max_num_files"` - MaxSize int64 `yaml:"max_size"` - URL string `yaml:"url"` + MaxNumFiles int64 `yaml:"max_num_files"` + MaxSize int64 `yaml:"max_size"` Prefix string Insecure bool }