Skip to content

Commit

Permalink
fix archiver url
Browse files Browse the repository at this point in the history
  • Loading branch information
David Christofas committed Apr 25, 2022
1 parent 89b925f commit 82bbb9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion extensions/frontend/pkg/command/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
},
Expand Down
5 changes: 2 additions & 3 deletions extensions/frontend/pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 82bbb9f

Please sign in to comment.