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
Tatuya Kamada
gitlab-ce
Commits
d9e3bb0e
Commit
d9e3bb0e
authored
Feb 22, 2016
by
Achilleas Pipinellis
Committed by
James Edwards-Jones
Jan 31, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a separate NGINX section
parent
f8c8dc03
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
41 deletions
+48
-41
doc/pages/administration.md
doc/pages/administration.md
+48
-41
No files found.
doc/pages/administration.md
View file @
d9e3bb0e
...
...
@@ -35,6 +35,9 @@ probably want to read the [user documentation](README.md).
-
[
Wildcard HTTP domain without custom domains
](
#wildcard-http-domain-without-custom-domains
)
-
[
Wildcard HTTPS domain without custom domains
](
#wildcard-https-domain-without-custom-domains
)
-
[
NGINX configuration
](
#nginx-configuration
)
-
[
NGINX configuration files
](
#nginx-configuration-files
)
-
[
NGINX configuration for custom domains
](
#nginx-configuration-for-custom-domains
)
-
[
NGINX caveats
](
#nginx-caveats
)
-
[
Set maximum pages size
](
#set-maximum-pages-size
)
-
[
Change storage path
](
#change-storage-path
)
-
[
Backup
](
#backup
)
...
...
@@ -200,17 +203,7 @@ Below are the four scenarios that are described in
gitlab_pages_options="-pages-domain example.io -pages-root $app_root/shared/pages -listen-proxy 127.0.0.1:8090 -listen-http 1.1.1.1:80 -listen-https 1.1.1.1:443 -root-cert /path/to/example.io.crt -root-key /path/to/example.io.key
```
1.
Copy the
`gitlab-pages-ssl`
Nginx configuration file:
```bash
sudo cp lib/support/nginx/gitlab-pages-ssl /etc/nginx/sites-available/gitlab-pages-ssl.conf
sudo ln -sf /etc/nginx/sites-{available,enabled}/gitlab-pages-ssl.conf
```
Make sure to [properly edit the config](#nginx-configuration) to add your domain
as well as correctly point to the right location of the SSL certificate
files. Restart Nginx for the changes to take effect.
1.
Make sure to
[
configure NGINX
](
#nginx-configuration
)
properly.
1.
[
Restart GitLab
][
restart
]
---
...
...
@@ -267,16 +260,7 @@ Below are the four scenarios that are described in
gitlab_pages_options="-pages-domain example.io -pages-root $app_root/shared/pages -listen-proxy 127.0.0.1:8090 -listen-http 1.1.1.1:80"
```
1.
Copy the
`gitlab-pages`
Nginx configuration file:
```bash
sudo cp lib/support/nginx/gitlab-pages-ssl /etc/nginx/sites-available/gitlab-pages.conf
sudo ln -sf /etc/nginx/sites-{available,enabled}/gitlab-pages.conf
```
Make sure to [properly edit the config](#nginx-configuration) to add your domain.
Restart Nginx for the changes to take effect.
1.
Make sure to
[
configure NGINX
](
#nginx-configuration
)
properly.
1.
[
Restart GitLab
][
restart
]
---
...
...
@@ -325,16 +309,7 @@ Below are the four scenarios that are described in
https: false
```
1.
Make sure you have copied the new
`gitlab-pages`
Nginx configuration file:
```bash
sudo cp lib/support/nginx/gitlab-pages /etc/nginx/sites-available/gitlab-pages.conf
sudo ln -sf /etc/nginx/sites-{available,enabled}/gitlab-pages.conf
```
Make sure to [properly edit the config](#nginx-configuration) to add your domain.
Restart Nginx for the changes to take effect.
1.
Make sure to
[
configure NGINX
](
#nginx-configuration
)
properly.
1.
[
Restart GitLab
][
restart
]
---
...
...
@@ -368,16 +343,7 @@ Below are the four scenarios that are described in
https: true
```
1.
Copy the
`gitlab-pages-ssl`
Nginx configuration file:
```bash
sudo cp lib/support/nginx/gitlab-pages-ssl /etc/nginx/sites-available/gitlab-pages-ssl.conf
sudo ln -sf /etc/nginx/sites-{available,enabled}/gitlab-pages-ssl.conf
```
Make sure to [properly edit the config](#nginx-configuration) to add your domain
as well as correctly point to the right location of the SSL certificate
files. Restart Nginx for the changes to take effect.
1.
Make sure to
[
configure NGINX
](
#nginx-configuration
)
properly.
---
...
...
@@ -401,6 +367,47 @@ Below are the four scenarios that are described in
## NGINX configuration
Depending on your setup, you will need to make some changes to NGINX.
Specifically you must change the domain name and the IP address where NGINX
listens to. Read the following sections for more details.
### NGINX configuration files
Copy the
`gitlab-pages-ssl`
Nginx configuration file:
```
bash
sudo cp
lib/support/nginx/gitlab-pages-ssl /etc/nginx/sites-available/gitlab-pages-ssl.conf
sudo ln
-sf
/etc/nginx/sites-
{
available,enabled
}
/gitlab-pages-ssl.conf
```
Replace
`gitlab-pages-ssl`
with
`gitlab-pages`
if you are not using SSL.
### NGINX configuration for custom domains
> If you are not using custom domains ignore this section.
[
In the case of custom domains
](
#the-gitlab-pages-daemon-and-the-case-of-custom-domains
)
,
if you have the secondary IP address configured on the same server as GitLab,
you need to change
**all**
NGINX configs to listen on the first IP address.
**Source installations:**
1.
Edit all GitLab related configs in
`/etc/nginx/site-available/`
and replace
`0.0.0.0`
with
`1.1.1.1`
, where
`1.1.1.1`
the primary IP where GitLab
listens to.
1.
Restart NGINX
**Omnibus installations:**
1.
Edit
`/etc/gitlab/gilab.rb`
:
```
nginx['listen_addresses'] = ['1.1.1.1']
```
1.
[
Reconfigure GitLab
][
reconfigure
]
### NGINX caveats
Be extra careful when setting up the domain name in the NGINX config. You must
not remove the backslashes.
...
...
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