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
aadbb606
Commit
aadbb606
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
Move Omnibus storage path
parent
84ff07cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
18 deletions
+27
-18
doc/pages/administration.md
doc/pages/administration.md
+27
-18
No files found.
doc/pages/administration.md
View file @
aadbb606
...
@@ -72,9 +72,9 @@ and/or `443`. For that reason, there is some flexibility in the way which you
...
@@ -72,9 +72,9 @@ and/or `443`. For that reason, there is some flexibility in the way which you
can set it up, so you basically have three choices:
can set it up, so you basically have three choices:
1.
Run the pages daemon in the same server as GitLab, listening on a secondary IP
1.
Run the pages daemon in the same server as GitLab, listening on a secondary IP
1.
Run the pages daemon in a separate server. In that case, the
Pages [
`path`
]
1.
Run the pages daemon in a separate server. In that case, the
must also be present in the server that the pages daemon is installed, so
[
Pages path
](
#change-storage-path
)
must also be present in the server that
you will have to share it via network.
the pages daemon is installed, so
you will have to share it via network.
1.
Run the pages daemon in the same server as GitLab, listening on the same IP
1.
Run the pages daemon in the same server as GitLab, listening on the same IP
but on different ports. In that case, you will have to proxy the traffic with
but on different ports. In that case, you will have to proxy the traffic with
a loadbalancer. If you choose that route note that you should use TCP load
a loadbalancer. If you choose that route note that you should use TCP load
...
@@ -85,8 +85,6 @@ can set it up, so you basically have three choices:
...
@@ -85,8 +85,6 @@ can set it up, so you basically have three choices:
In this document, we will proceed assuming the first option. First let's
In this document, we will proceed assuming the first option. First let's
install the pages daemon.
install the pages daemon.
[
`path`
]:
https://gitlab.com/gitlab-org/gitlab-ee/blob/8-5-stable-ee/config/gitlab.yml.example#L155
### Install the Pages daemon
### Install the Pages daemon
**Install the Pages daemon on a source installation**
**Install the Pages daemon on a source installation**
...
@@ -404,6 +402,7 @@ you need to change **all** NGINX configs to listen on the first IP address.
...
@@ -404,6 +402,7 @@ you need to change **all** NGINX configs to listen on the first IP address.
```
```
nginx['listen_addresses'] = ['1.1.1.1']
nginx['listen_addresses'] = ['1.1.1.1']
```
```
1.
[
Reconfigure GitLab
][
reconfigure
]
1.
[
Reconfigure GitLab
][
reconfigure
]
### NGINX caveats
### NGINX caveats
...
@@ -438,22 +437,32 @@ The default is 100MB.
...
@@ -438,22 +437,32 @@ The default is 100MB.
## Change storage path
## Change storage path
Pages are stored by default in
`/home/git/gitlab/shared/pages`
.
**Source installations:**
If you wish to store them in another location you must set it up in
`gitlab.yml`
under the
`pages`
section:
```
yaml
1.
Pages are stored by default in
`/home/git/gitlab/shared/pages`
.
pages
:
If you wish to store them in another location you must set it up in
enabled
:
true
`gitlab.yml`
under the
`pages`
section:
# The location where pages are stored (default: shared/pages).
path
:
/mnt/storage/pages
```
Restart GitLab for the changes to take effect:
```yaml
pages:
enabled: true
# The location where pages are stored (default: shared/pages).
path: /mnt/storage/pages
```
```
bash
1.
[
Restart GitLab
][
restart
]
sudo
service gitlab restart
```
**Omnibus installations:**
1.
Pages are stored by default in
`/var/opt/gitlab/gitlab-rails/shared/pages`
.
If you wish to store them in another location you must set it up in
`/etc/gitlab/gitlab.rb`
:
```ruby
gitlab_rails['pages_path'] = "/mnt/storage/pages"
```
1.
[
Reconfigure GitLab
][
reconfigure
]
## Backup
## Backup
...
...
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