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:
Diffstat (limited to 'app.go')
-rw-r--r--app.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/app.go b/app.go
index 0c8bf52f..05203478 100644
--- a/app.go
+++ b/app.go
@@ -514,6 +514,9 @@ func runApp(config *cfg.Config) {
a.Handlers = handlers.New(a.Auth, a.Artifact)
+ // TODO: This if was introduced when `gitlab-server` wasn't a required parameter
+ // once we completely remove support for legacy architecture and make it required
+ // we can just remove this if statement https://gitlab.com/gitlab-org/gitlab-pages/-/issues/581
if config.GitLab.Server != "" {
a.AcmeMiddleware = &acme.Middleware{GitlabURL: config.GitLab.Server}
}
@@ -545,6 +548,7 @@ func (a *theApp) setAuth(config *cfg.Config) {
}
var err error
+ // TODO: use config.GitLab.InternalServer https://gitlab.com/gitlab-org/gitlab-pages/-/issues/581
a.Auth, err = auth.New(config.General.Domain, config.Authentication.Secret, config.Authentication.ClientID, config.Authentication.ClientSecret,
config.Authentication.RedirectURI, config.GitLab.Server, config.Authentication.Scope)
if err != nil {