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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
e7c530cf
Commit
e7c530cf
authored
May 10, 2021
by
Kenneth Chu
Committed by
Achilleas Pipinellis
May 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move notes about IP addresses into inline comments
parent
db328436
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
doc/administration/pages/index.md
doc/administration/pages/index.md
+8
-12
No files found.
doc/administration/pages/index.md
View file @
e7c530cf
...
@@ -120,7 +120,7 @@ This example contains the following:
...
@@ -120,7 +120,7 @@ This example contains the following:
-
`example.com`
: The GitLab domain.
-
`example.com`
: The GitLab domain.
-
`example.io`
: The domain GitLab Pages is served from.
-
`example.io`
: The domain GitLab Pages is served from.
-
`192.0.2.1`
: The primary IP of your GitLab instance.
-
`192.0.2.1`
: The primary IP of your GitLab instance.
-
`192.0.2.2`
: The secondary IP, which is dedicated to GitLab Pages.
-
`192.0.2.2`
: The secondary IP, which is dedicated to GitLab Pages.
It must be different than the primary IP.
NOTE:
NOTE:
You should not use the GitLab domain to serve user pages. For more information see the
[
security section
](
#security
)
.
You should not use the GitLab domain to serve user pages. For more information see the
[
security section
](
#security
)
.
...
@@ -310,14 +310,12 @@ world. Custom domains are supported, but no TLS.
...
@@ -310,14 +310,12 @@ world. Custom domains are supported, but no TLS.
```
ruby
```
ruby
pages_external_url
"http://example.io"
pages_external_url
"http://example.io"
nginx
[
'listen_addresses'
]
=
[
'192.0.2.1'
]
nginx
[
'listen_addresses'
]
=
[
'192.0.2.1'
]
# The primary IP of the GitLab instance
pages_nginx
[
'enable'
]
=
false
pages_nginx
[
'enable'
]
=
false
gitlab_pages
[
'external_http'
]
=
[
'192.0.2.2:80'
,
'[2001:db8::2]:80'
]
gitlab_pages
[
'external_http'
]
=
[
'192.0.2.2:80'
,
'[2001:db8::2]:80'
]
# The secondary IPs for the GitLab Pages daemon
```
```
where
`192.0.2.1`
is the primary IP address that GitLab is listening to and
If you don't have IPv6, you can omit the IPv6 address.
`192.0.2.2`
and
`2001:db8::2`
are the secondary IPs the GitLab Pages daemon
listens on. If you don't have IPv6, you can omit the IPv6 address.
1.
[
Reconfigure GitLab
](
../restart_gitlab.md#omnibus-gitlab-reconfigure
)
.
1.
[
Reconfigure GitLab
](
../restart_gitlab.md#omnibus-gitlab-reconfigure
)
.
...
@@ -342,17 +340,15 @@ world. Custom domains and TLS are supported.
...
@@ -342,17 +340,15 @@ world. Custom domains and TLS are supported.
```
ruby
```
ruby
pages_external_url
"https://example.io"
pages_external_url
"https://example.io"
nginx
[
'listen_addresses'
]
=
[
'192.0.2.1'
]
nginx
[
'listen_addresses'
]
=
[
'192.0.2.1'
]
# The primary IP of the GitLab instance
pages_nginx
[
'enable'
]
=
false
pages_nginx
[
'enable'
]
=
false
gitlab_pages
[
'external_http'
]
=
[
'192.0.2.2:80'
,
'[2001:db8::2]:80'
]
gitlab_pages
[
'external_http'
]
=
[
'192.0.2.2:80'
,
'[2001:db8::2]:80'
]
# The secondary IPs for the GitLab Pages daemon
gitlab_pages
[
'external_https'
]
=
[
'192.0.2.2:443'
,
'[2001:db8::2]:443'
]
gitlab_pages
[
'external_https'
]
=
[
'192.0.2.2:443'
,
'[2001:db8::2]:443'
]
# The secondary IPs for the GitLab Pages daemon
# Redirect pages from HTTP to HTTPS
# Redirect pages from HTTP to HTTPS
gitlab_pages
[
'redirect_http'
]
=
true
gitlab_pages
[
'redirect_http'
]
=
true
```
```
where
`192.0.2.1`
is the primary IP address that GitLab is listening to and
If you don't have IPv6, you can omit the IPv6 address.
`192.0.2.2`
and
`2001:db8::2`
are the secondary IPs where the GitLab Pages daemon
listens on. If you don't have IPv6, you can omit the IPv6 address.
1.
If you haven't named your certificate and key
`example.io.crt`
and
`example.io.key`
respectively,
1.
If you haven't named your certificate and key
`example.io.crt`
and
`example.io.key`
respectively,
then you need to also add the full paths as shown below:
then you need to also add the full paths as shown below:
...
...
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