diff options
author | Nejc Habjan <nejc.habjan@siemens.com> | 2022-06-09 16:38:28 +0300 |
---|---|---|
committer | Nejc Habjan <nejc.habjan@siemens.com> | 2022-06-27 11:36:53 +0300 |
commit | 39b7e2c35b2f609623ae483ee3f607b3da42808e (patch) | |
tree | 1dfd076dff5dad0a86064edb36eb9097ccde2815 /app.go | |
parent | 31b7783c26879de6f170e40777c799dfd797213b (diff) |
Apply review suggestions
Diffstat (limited to 'app.go')
-rw-r--r-- | app.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -32,6 +32,7 @@ import ( "gitlab.com/gitlab-org/gitlab-pages/internal/httperrors" "gitlab.com/gitlab-org/gitlab-pages/internal/logging" "gitlab.com/gitlab-org/gitlab-pages/internal/netutil" + "gitlab.com/gitlab-org/gitlab-pages/internal/redirects" "gitlab.com/gitlab-org/gitlab-pages/internal/rejectmethods" "gitlab.com/gitlab-org/gitlab-pages/internal/request" "gitlab.com/gitlab-org/gitlab-pages/internal/routing" @@ -349,6 +350,8 @@ func (a *theApp) listenMetrics(eg *errgroup.Group, config cfg.Metrics) *http.Ser } func runApp(config *cfg.Config) error { + redirects.SetConfig(config.Redirects) + source, err := gitlab.New(&config.GitLab) if err != nil { return fmt.Errorf("could not create domains config source: %w", err) |