Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
aadbb606
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
aadbb606
编写于
2月 22, 2016
作者:
A
Achilleas Pipinellis
提交者:
James Edwards-Jones
1月 31, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Move Omnibus storage path
上级
84ff07cd
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
27 addition
and
18 deletion
+27
-18
doc/pages/administration.md
doc/pages/administration.md
+27
-18
未找到文件。
doc/pages/administration.md
浏览文件 @
aadbb606
...
...
@@ -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:
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`
]
must also be present in the server that the pages daemon is installed, so
you will have to share it via network.
1.
Run the pages daemon in a separate server. In that case, the
[
Pages path
](
#change-storage-path
)
must also be present in the server that
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
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
...
...
@@ -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
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 on a source installation**
...
...
@@ -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']
```
1.
[
Reconfigure GitLab
][
reconfigure
]
### NGINX caveats
...
...
@@ -438,22 +437,32 @@ The default is 100MB.
## Change storage path
Pages are stored by default in
`/home/git/gitlab/shared/pages`
.
If you wish to store them in another location you must set it up in
`gitlab.yml`
under the
`pages`
section:
**Source installations:**
```
yaml
pages
:
enabled
:
true
# The location where pages are stored (default: shared/pages).
path
:
/mnt/storage/pages
```
1.
Pages are stored by default in
`/home/git/gitlab/shared/pages`
.
If you wish to store them in another location you must set it up in
`gitlab.yml`
under the
`pages`
section:
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
sudo
service gitlab restart
```
1.
[
Restart 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
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录