Skip to content

Commit c71d70c

Browse files
authored
Partial revert of PR #4911 (#4939)
* Partial revert of PR #4911 * changelog
1 parent 3cb8890 commit c71d70c

File tree

7 files changed

+1183
-106
lines changed

7 files changed

+1183
-106
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Bugfix: revert 'make home layout configurable'
2+
3+
Partial revert of #4911, to be re-added after
4+
more testing and configuration validation. The
5+
eoshome vs eos storage drivers are to be adapted.
6+
7+
https://github.com/cs3org/reva/pull/4939

internal/grpc/services/gateway/gateway.go

-6
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ type config struct {
7171
EtagCacheTTL int `mapstructure:"etag_cache_ttl"`
7272
AllowedUserAgents map[string][]string `mapstructure:"allowed_user_agents"` // map[path][]user-agent
7373
CreateHomeCacheTTL int `mapstructure:"create_home_cache_ttl"`
74-
HomeLayout string `mapstructure:"home_layout"`
7574
}
7675

7776
// sets defaults.
@@ -112,11 +111,6 @@ func (c *config) ApplyDefaults() {
112111
if c.TransferExpires == 0 {
113112
c.TransferExpires = 100 * 60 // seconds
114113
}
115-
116-
// default to /home
117-
if c.HomeLayout == "" {
118-
c.HomeLayout = "/home"
119-
}
120114
}
121115

122116
type svc struct {

0 commit comments

Comments
 (0)