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
diff options
context:
space:
mode:
authorfeistel <6742251-feistel@users.noreply.gitlab.com>2022-06-06 13:19:14 +0300
committerfeistel <6742251-feistel@users.noreply.gitlab.com>2022-06-06 13:19:14 +0300
commit8afcd5fdf3505f00ad6f33f6bd148488b6dc9791 (patch)
treeddb402a7631c851a77b13c958715a5763b3cb4eb
parent413d38fbd39fc3870ee5668ce69ee50d952deb73 (diff)
Delay domain resolution after artifact middleware
-rw-r--r--app.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/app.go b/app.go
index ac3071a9..941b9034 100644
--- a/app.go
+++ b/app.go
@@ -141,12 +141,12 @@ func (a *theApp) buildHandlerPipeline() (http.Handler, error) {
handler = corsHandler.Handler(handler)
}
handler = a.Auth.AuthorizationMiddleware(handler)
+ handler = routing.NewMiddleware(handler, a.source)
+
handler = handlers.ArtifactMiddleware(handler, a.Handlers)
handler = a.Auth.AuthenticationMiddleware(handler, a.source)
handler = handlers.AcmeMiddleware(handler, a.source, a.config.GitLab.PublicServer)
- handler = routing.NewMiddleware(handler, a.source)
-
// Add auto redirect
handler = handlers.HTTPSRedirectMiddleware(handler, a.config.General.RedirectHTTP)