File: praefect.md

package info (click to toggle)
gitlab-shell 14.35.0%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 23,652 kB
  • sloc: ruby: 1,129; makefile: 583; sql: 391; sh: 384
file content (41 lines) | stat: -rw-r--r-- 1,003 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Configuring Praefect

This document describes how to configure the Praefect server.

Praefect is configured via a [TOML](https://github.com/toml-lang/toml)
configuration file. The TOML file contents and location depends on how you
installed GitLab. See: <https://docs.gitlab.com/ee/administration/gitaly/>

The configuration file is passed as an argument to the `praefect`
executable. This is usually done by either `omnibus-gitlab` or your init
script.

```shell
praefect -config /path/to/config.toml
```

## Format

```toml
listen_addr = "127.0.0.1:2305"
socket_path = "/path/to/praefect.socket"
tls_listen_addr = "127.0.0.1:2306"

[tls]
certificate_path = '/home/git/cert.cert'
key_path = '/home/git/key.pem'

[logging]
format = "json"
level = "info"

[[virtual_storage]]
name = 'praefect'

[[virtual_storage.node]]
  storage = "gitaly-0"
  address = "tcp://gitaly-0.internal"
  token = 'secret_token'
```

An example [config TOML](../../config.praefect.toml.example) is stored in this repository.