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
adc907c9
Commit
adc907c9
authored
Apr 27, 2021
by
Harsh Chouraria
Committed by
Evan Read
Apr 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add auth example to gitaly client docs
parent
7663a733
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
doc/administration/gitaly/configure_gitaly.md
doc/administration/gitaly/configure_gitaly.md
+17
-1
No files found.
doc/administration/gitaly/configure_gitaly.md
View file @
adc907c9
...
...
@@ -378,13 +378,26 @@ server (with `gitaly_address`) unless you use
1.
Edit
`/etc/gitlab/gitlab.rb`
:
```
ruby
# Use the same token value configured on all Gitaly servers
gitlab_rails
[
'gitaly_token'
]
=
'<AUTH_TOKEN>'
git_data_dirs
({
'default'
=>
{
'gitaly_address'
=>
'tcp://gitaly1.internal:8075'
},
'default'
=>
{
'gitaly_address'
=>
'tcp://gitaly1.internal:8075'
},
'storage1'
=>
{
'gitaly_address'
=>
'tcp://gitaly1.internal:8075'
},
'storage2'
=>
{
'gitaly_address'
=>
'tcp://gitaly2.internal:8075'
},
})
```
Alternatively, if each Gitaly server is configured to use a different authentication token:
```
ruby
git_data_dirs
({
'default'
=>
{
'gitaly_address'
=>
'tcp://gitaly1.internal:8075'
,
'gitaly_token'
=>
'<AUTH_TOKEN_1>'
},
'storage1'
=>
{
'gitaly_address'
=>
'tcp://gitaly1.internal:8075'
,
'gitaly_token'
=>
'<AUTH_TOKEN_1>'
},
'storage2'
=>
{
'gitaly_address'
=>
'tcp://gitaly2.internal:8075'
,
'gitaly_token'
=>
'<AUTH_TOKEN_2>'
},
})
```
1.
Save the file and
[
reconfigure GitLab
](
../restart_gitlab.md#omnibus-gitlab-reconfigure
)
.
1.
Run
`sudo gitlab-rake gitlab:gitaly:check`
on the Gitaly client (for example, the
Rails application) to confirm it can connect to Gitaly servers.
...
...
@@ -404,12 +417,15 @@ server (with `gitaly_address`) unless you use
storages
:
default
:
gitaly_address
:
tcp://gitaly1.internal:8075
gitaly_token
:
AUTH_TOKEN_1
path
:
/some/local/path
storage1
:
gitaly_address
:
tcp://gitaly1.internal:8075
gitaly_token
:
AUTH_TOKEN_1
path
:
/some/local/path
storage2
:
gitaly_address
:
tcp://gitaly2.internal:8075
gitaly_token
:
AUTH_TOKEN_2
path
:
/some/local/path
```
...
...
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