diff options
author | feistel <6742251-feistel@users.noreply.gitlab.com> | 2022-06-06 13:19:14 +0300 |
---|---|---|
committer | feistel <6742251-feistel@users.noreply.gitlab.com> | 2022-06-06 13:19:14 +0300 |
commit | 8afcd5fdf3505f00ad6f33f6bd148488b6dc9791 (patch) | |
tree | ddb402a7631c851a77b13c958715a5763b3cb4eb | |
parent | 413d38fbd39fc3870ee5668ce69ee50d952deb73 (diff) |
Delay domain resolution after artifact middleware
-rw-r--r-- | app.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |