fix archiver url

This commit is contained in:
David Christofas
2022-04-25 15:42:48 +02:00
parent 89b925f34a
commit 82bbb9fca3
2 changed files with 3 additions and 4 deletions

View File

@@ -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),
},

View File

@@ -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
}