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
8c569f92
Commit
8c569f92
authored
Aug 07, 2018
by
Jacob Vosmaer (GitLab)
Committed by
Sean McGivern
Aug 07, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add omnibus setting examples for standalone gitaly server
parent
0fe18ee0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
8 deletions
+30
-8
doc/administration/gitaly/index.md
doc/administration/gitaly/index.md
+30
-8
No files found.
doc/administration/gitaly/index.md
View file @
8c569f92
...
...
@@ -63,7 +63,7 @@ Gitaly network traffic is unencrypted so you should use a firewall to
restrict access to your Gitaly server.
Below we describe how to configure a Gitaly server at address
`gitaly.internal:
9999
`
with secret token
`abc123secret`
. We assume
`gitaly.internal:
8075
`
with secret token
`abc123secret`
. We assume
your GitLab installation has two repository storages,
`default`
and
`storage1`
.
...
...
@@ -108,8 +108,30 @@ Omnibus installations:
```
ruby
# /etc/gitlab/gitlab.rb
gitaly
[
'listen_addr'
]
=
'0.0.0.0:9999'
# Avoid running unnecessary services on the gitaly server
postgresql
[
'enable'
]
=
false
redis
[
'enable'
]
=
false
nginx
[
'enable'
]
=
false
prometheus
[
'enable'
]
=
false
unicorn
[
'enable'
]
=
false
sidekiq
[
'enable'
]
=
false
gitlab_workhorse
[
'enable'
]
=
false
# Prevent database connections during 'gitlab-ctl reconfigure'
gitlab_rails
[
'rake_cache_clear'
]
=
false
gitlab_rails
[
'auto_migrate'
]
=
false
# Configure the gitlab-shell API callback URL. Without this, `git push` will
# fail. This can be your 'front door' GitLab URL or an internal load
# balancer.
gitlab_rails
[
'internal_api_url'
]
=
'https://gitlab.example.com'
# Make Gitaly accept connections on all network interfaces. You must use
# firewalls to restrict access to this address/port.
gitaly
[
'listen_addr'
]
=
"0.0.0.0:8075"
gitaly
[
'auth_token'
]
=
'abc123secret'
gitaly
[
'storage'
]
=
[
{
'name'
=>
'default'
,
'path'
=>
'/path/to/default/repositories'
},
{
'name'
=>
'storage1'
,
'path'
=>
'/path/to/storage1/repositories'
},
...
...
@@ -120,7 +142,7 @@ Source installations:
```
toml
# /home/git/gitaly/config.toml
listen_addr
=
'0.0.0.0:
9999
'
listen_addr
=
'0.0.0.0:
8075
'
[auth]
token
=
'abc123secret'
...
...
@@ -146,7 +168,7 @@ server from reaching the Gitaly server then all Gitaly requests will
fail.
We assume that your Gitaly server can be reached at
`gitaly.internal:
9999
`
from your GitLab server, and that your GitLab
`gitaly.internal:
8075
`
from your GitLab server, and that your GitLab
NFS shares are mounted at
`/mnt/gitlab/default`
and
`/mnt/gitlab/storage1`
respectively.
...
...
@@ -155,8 +177,8 @@ Omnibus installations:
```
ruby
# /etc/gitlab/gitlab.rb
git_data_dirs
({
'default'
=>
{
'path'
=>
'/mnt/gitlab/default'
,
'gitaly_address'
=>
'tcp://git
lab.internal:9999
'
},
'storage1'
=>
{
'path'
=>
'/mnt/gitlab/storage1'
,
'gitaly_address'
=>
'tcp://git
lab.internal:9999
'
},
'default'
=>
{
'path'
=>
'/mnt/gitlab/default'
,
'gitaly_address'
=>
'tcp://git
aly.internal:8075
'
},
'storage1'
=>
{
'path'
=>
'/mnt/gitlab/storage1'
,
'gitaly_address'
=>
'tcp://git
aly.internal:8075
'
},
})
gitlab_rails
[
'gitaly_token'
]
=
'abc123secret'
...
...
@@ -171,10 +193,10 @@ gitlab:
storages
:
default
:
path
:
/mnt/gitlab/default/repositories
gitaly_address
:
tcp://git
lab.internal:9999
gitaly_address
:
tcp://git
aly.internal:8075
storage1
:
path
:
/mnt/gitlab/storage1/repositories
gitaly_address
:
tcp://git
lab.internal:9999
gitaly_address
:
tcp://git
aly.internal:8075
gitaly
:
token
:
'
abc123secret'
...
...
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