Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app.go
diff options
context:
space:
mode:
authorNejc Habjan <nejc.habjan@siemens.com>2022-06-09 16:38:28 +0300
committerNejc Habjan <nejc.habjan@siemens.com>2022-06-27 11:36:53 +0300
commit39b7e2c35b2f609623ae483ee3f607b3da42808e (patch)
tree1dfd076dff5dad0a86064edb36eb9097ccde2815 /app.go
parent31b7783c26879de6f170e40777c799dfd797213b (diff)
Apply review suggestions
Diffstat (limited to 'app.go')
-rw-r--r--app.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/app.go b/app.go
index c08dfb29..7a22a3fd 100644
--- a/app.go
+++ b/app.go
@@ -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)