Skip to content

Commit

Permalink
Revert "Partial revert of PR #4911 (#4939)"
Browse files Browse the repository at this point in the history
This reverts commit c71d70c.
  • Loading branch information
glpatcern committed Nov 15, 2024
1 parent c71d70c commit d20a9f6
Show file tree
Hide file tree
Showing 7 changed files with 108 additions and 1,185 deletions.
7 changes: 0 additions & 7 deletions changelog/unreleased/undo-gw-refactoring.md

This file was deleted.

6 changes: 6 additions & 0 deletions internal/grpc/services/gateway/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ 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 @@ -111,6 +112,11 @@ 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 d20a9f6

Please sign in to comment.