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:
authorJaime Martinez <jmartinez@gitlab.com>2021-04-29 08:43:33 +0300
committerJaime Martinez <jmartinez@gitlab.com>2021-04-29 08:43:33 +0300
commit890d01033ab17ea5a6208450ced595d12f4ce195 (patch)
tree36e0e6a7901ab66cc4c4aeecec07d05fc1eaeb13 /app.go
parent4ff61e374a7dbfa51fee91799f11197e0f8d53f7 (diff)
Use config package in GitLab client
Uses the `internal/config/` client inside the `internal/source/gitlab/` package which makes it easier to extend the configuration. This is an iteration of https://gitlab.com/gitlab-org/gitlab-pages/-/issues/543. Changelog: other
Diffstat (limited to 'app.go')
-rw-r--r--app.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.go b/app.go
index c5555fc0..bd4fe4e6 100644
--- a/app.go
+++ b/app.go
@@ -491,7 +491,7 @@ func (a *theApp) listenMetricsFD(wg *sync.WaitGroup, fd uintptr) {
}
func runApp(config *cfg.Config) {
- domains, err := source.NewDomains(config)
+ domains, err := source.NewDomains(config.General.DomainConfigurationSource, &config.GitLab)
if err != nil {
log.WithError(err).Fatal("could not create domains config source")
}