diff options
author | Marcia Ramos <virtua.creative@gmail.com> | 2019-06-26 11:32:50 +0100 |
---|---|---|
committer | Marcia Ramos <virtua.creative@gmail.com> | 2019-06-26 11:49:33 +0100 |
commit | 1e6cf8968151357e33ed5ef960141c02a78b996d (patch) | |
tree | d86d4eead9de448b1345d238a7759a70d09bae4b | |
parent | ebae72fbbc73533787ff8b90097fb21d44e2feca (diff) | |
download | gitlab-ce-docs-pages-force-https.tar.gz |
Address Axil's reviewdocs-pages-force-https
-rw-r--r-- | doc/user/project/pages/getting_started_part_three.md | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/doc/user/project/pages/getting_started_part_three.md b/doc/user/project/pages/getting_started_part_three.md index a8e709e28c5..bc9a11504cd 100644 --- a/doc/user/project/pages/getting_started_part_three.md +++ b/doc/user/project/pages/getting_started_part_three.md @@ -199,7 +199,7 @@ Certificates are NOT required to add to your custom highly recommendable. Let's start with an introduction to the importance of HTTPS. -Alternatively, jump ahead to [adding certificates to your project](#adding-certificates-to-gitlab). +Alternatively, jump ahead to [adding certificates to your project](#adding-certificates-to-pages). ### Why should I care about HTTPS? @@ -255,7 +255,7 @@ which also offers a [free CDN service](https://blog.cloudflare.com/cloudflares-f Their certs are valid up to 15 years. See the tutorial on [how to add a CloudFlare Certificate to your GitLab Pages website](https://about.gitlab.com/2017/02/07/setting-up-gitlab-pages-with-cloudflare-certificates/). -### Adding certificates to GitLab +### Adding certificates to Pages Regardless the CA you choose, the steps to add your certificate to your Pages project are the same. @@ -285,8 +285,7 @@ These fields are found under your **Project**'s **Settings** > **Pages** > **New #### Add the certificate to your project -Now that you hopefully understand why you need all -of this: +Once you've met the requirements: - Your PEM certificate needs to be added to the first field. - If your certificate is missing its intermediate, copy @@ -302,11 +301,13 @@ Sublime Text, Atom, Dreamweaver, Brackets, etc). ## Force HTTPS for GitLab Pages websites +> [Introduced](https://gitlab.com/gitlab-org/gitlab-ce/issues/28857) in GitLab 10.7. + To make your website's visitors even more secure, you can choose to force HTTPS for GitLab Pages. By doing so, all attempts to visit your -website via HTTP will be automatically redirected to HTTPS. +website via HTTP will be automatically redirected to HTTPS via 301. -It works with with both GitLab's default domain and with your custom +It works with both GitLab's default domain and with your custom domain (as long as you've set a valid certificate for it). To enable this setting, navigate to your project's **Settings > Pages** |