Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Tanayno <atanayno@gitlab.com>2018-04-20 11:43:50 +0300
committerAlexander Tanayno <atanayno@gitlab.com>2018-04-20 11:43:50 +0300
commit02c921afbc90d7f45b3f5483c27499caf7aa78a6 (patch)
treef4c66320a782d40dd946bfc463ba42d7235d5448 /doc/administration/pages
parentc55685d265b628d457fc065df2559fc89996cef9 (diff)
Update index.md
Diffstat (limited to 'doc/administration/pages')
-rw-r--r--doc/administration/pages/index.md20
1 files changed, 10 insertions, 10 deletions
diff --git a/doc/administration/pages/index.md b/doc/administration/pages/index.md
index c342a82ef7b..9b3b1e48efd 100644
--- a/doc/administration/pages/index.md
+++ b/doc/administration/pages/index.md
@@ -119,14 +119,14 @@ The Pages daemon doesn't listen to the outside world.
1. Set the external URL for GitLab Pages in `/etc/gitlab/gitlab.rb`:
- ```ruby
+ ```shell
pages_external_url 'http://example.io'
```
1. [Reconfigure GitLab][reconfigure]
1. Restart gitlab-pages by running the following command:
- ```ruby
+ ```shell
sudo gitlab-ctl restart gitlab-pages
```
@@ -149,7 +149,7 @@ outside world.
1. Place the certificate and key inside `/etc/gitlab/ssl`
1. In `/etc/gitlab/gitlab.rb` specify the following configuration:
- ```ruby
+ ```shell
pages_external_url 'https://example.io'
pages_nginx['redirect_http_to_https'] = true
@@ -163,7 +163,7 @@ outside world.
1. [Reconfigure GitLab][reconfigure]
1. Restart gitlab-pages by running the following command:
- ```ruby
+ ```shell
sudo gitlab-ctl restart gitlab-pages
```
@@ -191,7 +191,7 @@ world. Custom domains are supported, but no TLS.
1. Edit `/etc/gitlab/gitlab.rb`:
- ```ruby
+ ```shell
pages_external_url "http://example.io"
nginx['listen_addresses'] = ['1.1.1.1']
pages_nginx['enable'] = false
@@ -205,7 +205,7 @@ world. Custom domains are supported, but no TLS.
1. [Reconfigure GitLab][reconfigure]
1. Restart gitlab-pages by running the following command:
- ```ruby
+ ```shell
sudo gitlab-ctl restart gitlab-pages
```
@@ -226,7 +226,7 @@ world. Custom domains and TLS are supported.
1. Edit `/etc/gitlab/gitlab.rb`:
- ```ruby
+ ```shell
pages_external_url "https://example.io"
nginx['listen_addresses'] = ['1.1.1.1']
pages_nginx['enable'] = false
@@ -243,7 +243,7 @@ world. Custom domains and TLS are supported.
1. [Reconfigure GitLab][reconfigure]
1. Restart gitlab-pages by running the following command:
- ```ruby
+ ```shell
sudo gitlab-ctl restart gitlab-pages
```
@@ -268,14 +268,14 @@ are stored.
If you wish to store them in another location you must set it up in
`/etc/gitlab/gitlab.rb`:
- ```ruby
+ ```shell
gitlab_rails['pages_path'] = "/mnt/storage/pages"
```
1. [Reconfigure GitLab][reconfigure]
1. Restart gitlab-pages by running the following command:
- ```ruby
+ ```shell
sudo gitlab-ctl restart gitlab-pages
```