fix archiver url
This commit is contained in:
@@ -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),
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user