diff options
author | Stan Hu <stanhu@gmail.com> | 2017-03-11 02:21:21 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2017-03-13 13:42:29 +0300 |
commit | de395b2806024af3846c93b3f10c9dc9416cd83d (patch) | |
tree | 56a4f2154dbda3314548f2101bbc47c1984bd56b /main.go | |
parent | fbcbce1277c57783568c2a2d828c0022d675932c (diff) |
Fix and clarify redirect HTTP logic
redirect-http seemed to suggest the Pages daemon would redirect from HTTPS to
HTTP, but it seems that the opposite was implied.
Fixes issue manifested by https://gitlab.com/gitlab-org/omnibus-gitlab/merge_requests/1348
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -16,7 +16,7 @@ var REVISION = "HEAD" var ( pagesRootCert = flag.String("root-cert", "", "The default path to file certificate to serve static pages") pagesRootKey = flag.String("root-key", "", "The default path to file certificate to serve static pages") - redirectHTTP = flag.Bool("redirect-http", true, "Serve the pages under HTTP") + redirectHTTP = flag.Bool("redirect-http", false, "Redirect pages from HTTP to HTTPS") useHTTP2 = flag.Bool("use-http2", true, "Enable HTTP2 support") pagesRoot = flag.String("pages-root", "shared/pages", "The directory where pages are stored") pagesDomain = flag.String("pages-domain", "gitlab-example.com", "The domain to serve static pages") |