1# Example Praefect configuration file 2 3# # TCP address to listen on 4listen_addr = "127.0.0.1:2305" 5 6# # Praefect can listen on a socket when placed on the same machine as all clients 7# socket_path = "/home/git/gitlab/tmp/sockets/private/praefect.socket" 8# # Optional: export metrics via Prometheus 9# prometheus_listen_addr = "127.0.01:10101" 10# # You can optionally configure Praefect to output JSON-formatted log messages to stdout 11# [logging] 12# format = "json" 13# # Optional: Set log level to only log entries with that severity or above 14# # One of, in order: debug, info, warn, errror, fatal, panic 15# # Defaults to "info" 16# level = "warn" 17# [sentry] 18# sentry_environment = "" 19# sentry_dsn = "" 20# 21# Optional: authenticate Gitaly requests using a shared secret. This token works the same way as a gitaly token 22# [auth] 23# token = 'abc123secret' 24# 25# # One or more Gitaly servers need to be configured to be managed. The names 26# of each server are used to link multiple nodes, or `gitaly_server`s together 27# as shard. listen_addr should be unique for all nodes. 28# Requires the protocol to be defined, e.g. tcp://host.tld:1234 29 30[[virtual_storage]] 31name = "praefect" 32 33[[virtual_storage.node]] 34 storage = "praefect-git-0" 35 address = "tcp://praefect-git-0.internal" 36 token = 'token1' 37 38[[virtual_storage.node]] 39 storage = "praefect-git-1" 40 address = "tcp://praefect-git-1.internal" 41 token = 'token2' 42 43[[virtual_storage.node]] 44 storage = "praefect-git-2" 45 address = "tcp://praefect-git-2.internal" 46 token = 'token3' 47 48[database] 49# In CI this magical hostname 'postgres' points to our dedicated CI postgres instance. 50host = 'postgres' 51 52# POSTGRES_* variables are defined in gitlab-ci.yml 53dbname = '<%= ENV['POSTGRES_DB'] %>' 54user = '<%= ENV['POSTGRES_USER'] %>' 55password = '<%= ENV['POSTGRES_PASSWORD'] %>' 56 57# No SSL in CI 58sslmode = 'disable' 59