diff options
author | John Cai <jcai@gitlab.com> | 2019-09-16 18:45:12 +0300 |
---|---|---|
committer | John Cai <johncai@gitlab.com> | 2019-10-08 19:59:15 +0300 |
commit | ad371133b96a7c9262269a1ffca5612c7eaeb9bc (patch) | |
tree | f7619243567a2096c38c36bc42129ec50e1873e3 /config.praefect.toml.example | |
parent | 58ccfe7fdbde5a3f1d492d7a196ea24f8fab4e34 (diff) |
Adding auth to praefect
Diffstat (limited to 'config.praefect.toml.example')
-rw-r--r-- | config.praefect.toml.example | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/config.praefect.toml.example b/config.praefect.toml.example index 368f9fed6..74e929f33 100644 --- a/config.praefect.toml.example +++ b/config.praefect.toml.example @@ -7,7 +7,6 @@ listen_addr = "127.0.0.1:2305" # socket_path = "/home/git/gitlab/tmp/sockets/private/praefect.socket" # # Optional: export metrics via Prometheus # prometheus_listen_addr = "127.0.01:10101" - # # You can optionally configure Praefect to output JSON-formatted log messages to stdout # [logging] # format = "json" @@ -15,7 +14,11 @@ listen_addr = "127.0.0.1:2305" # # One of, in order: debug, info, warn, errror, fatal, panic # # Defaults to "info" # level = "warn" - +# +# Optional: authenticate Gitaly requests using a shared secret. This token works the same way as a gitaly token +# [auth] +# token = 'abc123secret' +# # # One or more Gitaly servers need to be configured to be managed. The names # of each server are used to link multiple nodes, or `gitaly_server`s together # as shard. listen_addr should be unique for all nodes. @@ -25,11 +28,15 @@ listen_addr = "127.0.0.1:2305" storage = "praefect-git-0" address = "tcp://praefect-git-0.internal" primary = true + token = 'token1' [[node]] storage = "praefect-git-1" address = "tcp://praefect-git-1.internal" + token = 'token2' [[node]] storage = "praefect-git-2" address = "tcp://praefect-git-2.internal" + token = 'token3' + |