Skip to content

Commit 28a0295

Browse files
committed
Revert "Partial revert of PR #4911 (#4939)"
This reverts commit c71d70c.
1 parent 29987f8 commit 28a0295

File tree

7 files changed

+108
-1185
lines changed

7 files changed

+108
-1185
lines changed

changelog/unreleased/undo-gw-refactoring.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

internal/grpc/services/gateway/gateway.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ 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"`
7475
}
7576

7677
// sets defaults.
@@ -111,6 +112,11 @@ func (c *config) ApplyDefaults() {
111112
if c.TransferExpires == 0 {
112113
c.TransferExpires = 100 * 60 // seconds
113114
}
115+
116+
// default to /home
117+
if c.HomeLayout == "" {
118+
c.HomeLayout = "/home"
119+
}
114120
}
115121

116122
type svc struct {

0 commit comments

Comments
 (0)