Skip to content

Commit

Permalink
Partial revert of PR #4911 (#4939)
Browse files Browse the repository at this point in the history
* Partial revert of PR #4911

* changelog
  • Loading branch information
glpatcern authored Nov 15, 2024
1 parent 3cb8890 commit c71d70c
Show file tree
Hide file tree
Showing 7 changed files with 1,183 additions and 106 deletions.
7 changes: 7 additions & 0 deletions changelog/unreleased/undo-gw-refactoring.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Bugfix: revert 'make home layout configurable'

Partial revert of #4911, to be re-added after
more testing and configuration validation. The
eoshome vs eos storage drivers are to be adapted.

https://github.com/cs3org/reva/pull/4939
6 changes: 0 additions & 6 deletions internal/grpc/services/gateway/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ type config struct {
EtagCacheTTL int `mapstructure:"etag_cache_ttl"`
AllowedUserAgents map[string][]string `mapstructure:"allowed_user_agents"` // map[path][]user-agent
CreateHomeCacheTTL int `mapstructure:"create_home_cache_ttl"`
HomeLayout string `mapstructure:"home_layout"`
}

// sets defaults.
Expand Down Expand Up @@ -112,11 +111,6 @@ func (c *config) ApplyDefaults() {
if c.TransferExpires == 0 {
c.TransferExpires = 100 * 60 // seconds
}

// default to /home
if c.HomeLayout == "" {
c.HomeLayout = "/home"
}
}

type svc struct {
Expand Down
Loading

0 comments on commit c71d70c

Please sign in to comment.