Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
02c921af
Commit
02c921af
authored
Apr 20, 2018
by
Alexander Tanayno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update index.md
parent
c55685d2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
doc/administration/pages/index.md
doc/administration/pages/index.md
+10
-10
No files found.
doc/administration/pages/index.md
View file @
02c921af
...
@@ -119,14 +119,14 @@ The Pages daemon doesn't listen to the outside world.
...
@@ -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`
:
1.
Set the external URL for GitLab Pages in
`/etc/gitlab/gitlab.rb`
:
```
ruby
```
shell
pages_external_url 'http://example.io'
pages_external_url 'http://example.io'
```
```
1.
[
Reconfigure GitLab
][
reconfigure
]
1.
[
Reconfigure GitLab
][
reconfigure
]
1.
Restart gitlab-pages by running the following command:
1.
Restart gitlab-pages by running the following command:
```
ruby
```
shell
sudo gitlab-ctl restart gitlab-pages
sudo gitlab-ctl restart gitlab-pages
```
```
...
@@ -149,7 +149,7 @@ outside world.
...
@@ -149,7 +149,7 @@ outside world.
1.
Place the certificate and key inside
`/etc/gitlab/ssl`
1.
Place the certificate and key inside
`/etc/gitlab/ssl`
1.
In
`/etc/gitlab/gitlab.rb`
specify the following configuration:
1.
In
`/etc/gitlab/gitlab.rb`
specify the following configuration:
```
ruby
```
shell
pages_external_url 'https://example.io'
pages_external_url 'https://example.io'
pages_nginx['redirect_http_to_https'] = true
pages_nginx['redirect_http_to_https'] = true
...
@@ -163,7 +163,7 @@ outside world.
...
@@ -163,7 +163,7 @@ outside world.
1.
[
Reconfigure GitLab
][
reconfigure
]
1.
[
Reconfigure GitLab
][
reconfigure
]
1.
Restart gitlab-pages by running the following command:
1.
Restart gitlab-pages by running the following command:
```
ruby
```
shell
sudo gitlab-ctl restart gitlab-pages
sudo gitlab-ctl restart gitlab-pages
```
```
...
@@ -191,7 +191,7 @@ world. Custom domains are supported, but no TLS.
...
@@ -191,7 +191,7 @@ world. Custom domains are supported, but no TLS.
1.
Edit
`/etc/gitlab/gitlab.rb`
:
1.
Edit
`/etc/gitlab/gitlab.rb`
:
```
ruby
```
shell
pages_external_url "http://example.io"
pages_external_url "http://example.io"
nginx['listen_addresses'] = ['1.1.1.1']
nginx['listen_addresses'] = ['1.1.1.1']
pages_nginx['enable'] = false
pages_nginx['enable'] = false
...
@@ -205,7 +205,7 @@ world. Custom domains are supported, but no TLS.
...
@@ -205,7 +205,7 @@ world. Custom domains are supported, but no TLS.
1.
[
Reconfigure GitLab
][
reconfigure
]
1.
[
Reconfigure GitLab
][
reconfigure
]
1.
Restart gitlab-pages by running the following command:
1.
Restart gitlab-pages by running the following command:
```
ruby
```
shell
sudo gitlab-ctl restart gitlab-pages
sudo gitlab-ctl restart gitlab-pages
```
```
...
@@ -226,7 +226,7 @@ world. Custom domains and TLS are supported.
...
@@ -226,7 +226,7 @@ world. Custom domains and TLS are supported.
1.
Edit
`/etc/gitlab/gitlab.rb`
:
1.
Edit
`/etc/gitlab/gitlab.rb`
:
```
ruby
```
shell
pages_external_url "https://example.io"
pages_external_url "https://example.io"
nginx['listen_addresses'] = ['1.1.1.1']
nginx['listen_addresses'] = ['1.1.1.1']
pages_nginx['enable'] = false
pages_nginx['enable'] = false
...
@@ -243,7 +243,7 @@ world. Custom domains and TLS are supported.
...
@@ -243,7 +243,7 @@ world. Custom domains and TLS are supported.
1.
[
Reconfigure GitLab
][
reconfigure
]
1.
[
Reconfigure GitLab
][
reconfigure
]
1.
Restart gitlab-pages by running the following command:
1.
Restart gitlab-pages by running the following command:
```
ruby
```
shell
sudo gitlab-ctl restart gitlab-pages
sudo gitlab-ctl restart gitlab-pages
```
```
...
@@ -268,14 +268,14 @@ are stored.
...
@@ -268,14 +268,14 @@ are stored.
If you wish to store them in another location you must set it up in
If you wish to store them in another location you must set it up in
`/etc/gitlab/gitlab.rb`
:
`/etc/gitlab/gitlab.rb`
:
```
ruby
```
shell
gitlab_rails['pages_path'] = "/mnt/storage/pages"
gitlab_rails['pages_path'] = "/mnt/storage/pages"
```
```
1.
[
Reconfigure GitLab
][
reconfigure
]
1.
[
Reconfigure GitLab
][
reconfigure
]
1.
Restart gitlab-pages by running the following command:
1.
Restart gitlab-pages by running the following command:
```
ruby
```
shell
sudo gitlab-ctl restart gitlab-pages
sudo gitlab-ctl restart gitlab-pages
```
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment