@@ -26,9 +26,9 @@ it works.
26
26
27
27
---
28
28
29
- In the case of [ custom domains] ( #custom-domains ) (but not
30
- [ wildcard domains] ( #wildcard-domains ) ), the Pages daemon needs to listen on
31
- ports ` 80 ` and/or ` 443 ` . For that reason, there is some flexibility in the way
29
+ In the case of [ custom domains] ( #custom-domains ) (but not
30
+ [ wildcard domains] ( #wildcard-domains ) ), the Pages daemon needs to listen on
31
+ ports ` 80 ` and/or ` 443 ` . For that reason, there is some flexibility in the way
32
32
which you can set it up:
33
33
34
34
1 . Run the Pages daemon in the same server as GitLab, listening on a secondary IP.
@@ -65,11 +65,13 @@ you need to add a [wildcard DNS A record][wiki-wildcard-dns] pointing to the
65
65
host that GitLab runs. For example, an entry would look like this:
66
66
67
67
```
68
- *.example.io. 1800 IN A 1.1.1.1
68
+ *.example.io. 1800 IN A 1.1.1.1
69
+ *.example.io. 1800 IN AAAA 2001::1
69
70
```
70
71
71
72
where ` example.io ` is the domain under which GitLab Pages will be served
72
- and ` 1.1.1.1 ` is the IP address of your GitLab instance.
73
+ and ` 1.1.1.1 ` is the IPv4 address of your GitLab instance and ` 2001::1 ` is the
74
+ IPv6 address. If you don't have IPv6, you can omit the AAAA record.
73
75
74
76
> ** Note:**
75
77
You should not use the GitLab domain to serve user pages. For more information
@@ -141,7 +143,8 @@ outside world.
141
143
In addition to the wildcard domains, you can also have the option to configure
142
144
GitLab Pages to work with custom domains. Again, there are two options here:
143
145
support custom domains with and without TLS certificates. The easiest setup is
144
- that without TLS certificates.
146
+ that without TLS certificates. In either case, you' ll need a secondary IP . If
147
+ you have IPv6 as well as IPv4 addresses, you can use them both.
145
148
146
149
# ## Custom domains
147
150
@@ -163,11 +166,12 @@ world. Custom domains are supported, but no TLS.
163
166
pages_external_url "http://example.io"
164
167
nginx['listen_addresses'] = ['1.1.1.1']
165
168
pages_nginx['enable'] = false
166
- gitlab_pages[' external_http' ] = ' 1.1 .1.2 :80 '
169
+ gitlab_pages['external_http'] = [ '1.1.1.2:80', '[2001::2]:80']
167
170
` ` `
168
171
169
172
where ` 1.1.1.1` is the primary IP address that GitLab is listening to and
170
- `1.1.1.2` the secondary IP where the GitLab Pages daemon listens to.
173
+ ` 1.1.1.2` and ` 2001::2` are the secondary IPs the GitLab Pages daemon
174
+ listens on. If you don' t have IPv6, you can omit the IPv6 address.
171
175
172
176
1. [Reconfigure GitLab][reconfigure]
173
177
@@ -194,12 +198,13 @@ world. Custom domains and TLS are supported.
194
198
pages_nginx[' enable' ] = false
195
199
gitlab_pages[' cert' ] = "/etc/gitlab/ssl/example.io.crt"
196
200
gitlab_pages[' cert_key' ] = "/etc/gitlab/ssl/example.io.key"
197
- gitlab_pages[' external_http' ] = ' 1.1 .1.2 :80 '
198
- gitlab_pages[' external_https' ] = ' 1.1 .1.2 :443 '
201
+ gitlab_pages[' external_http' ] = [ ' 1.1 .1.2 :80 ' , ' [ 2001 :: 2 ]: 80 ' ]
202
+ gitlab_pages[' external_https' ] = [ ' 1.1 .1.2 :443 ' , ' [ 2001 :: 2 ]: 443 ' ]
199
203
```
200
204
201
205
where `1.1.1.1` is the primary IP address that GitLab is listening to and
202
- `1.1.1.2` the secondary IP where the GitLab Pages daemon listens to.
206
+ `1.1.1.2` and `2001::2` are the secondary IPs where the GitLab Pages daemon
207
+ listens on. If you don' t have IPv6 , you can omit the IPv6 address.
203
208
204
209
1 . [Reconfigure GitLab ][reconfigure]
205
210
0 commit comments