Skip to content

Commit

Permalink
move httpToHttpsRedirect and canonicalURLRedirect to nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
sqs committed Nov 10, 2018
1 parent 9b4fa0b commit 773be37
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 451 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -26,6 +26,7 @@ All notable changes to Sourcegraph are documented in this file.
- Removed the `httpStrictTransportSecurity` site configuration option. Use [nginx configuration](https://docs.sourcegraph.com/admin/nginx) for this instead.
- Removed the `tls.letsencrypt` site configuration option. Use [nginx configuration](https://docs.sourcegraph.com/admin/nginx) for this instead.
- Removed the `tls.cert` and `tls.key` site configuration options. Use [nginx configuration](https://docs.sourcegraph.com/admin/nginx) for this instead.
- Removed the `httpToHttpsRedirect` and `experimentalFeatures.canonicalURLRedireect` site configuration options. Use [nginx configuration](https://docs.sourcegraph.com/admin/nginx) for these instead.

### Removed

Expand Down
1 change: 0 additions & 1 deletion cmd/frontend/internal/cli/http.go
Expand Up @@ -69,7 +69,6 @@ func newExternalHTTPHandler(ctx context.Context) (http.Handler, error) {
h = middleware.SourcegraphComGoGetHandler(h)
h = middleware.BlackHole(h)
h = secureHeadersMiddleware(h)
h = middleware.CanonicalURL(h)
h = gcontext.ClearHandler(h)
h = middleware.Trace(h)
return h, nil
Expand Down
132 changes: 0 additions & 132 deletions cmd/frontend/internal/cli/middleware/redirect.go

This file was deleted.

0 comments on commit 773be37

Please sign in to comment.