diff options
author | Sami Hiltunen <shiltunen@gitlab.com> | 2023-12-15 10:43:08 +0300 |
---|---|---|
committer | GitLab <noreply@gitlab.com> | 2023-12-15 10:43:08 +0300 |
commit | 0ba9e76dd638521b39158d410e919ccd7397b019 (patch) | |
tree | 66d8c65e51ba2d019923d6911814a8adb9b99a92 | |
parent | 8891a36f64004b06cfd6162fb33c8584d5d4c2d7 (diff) | |
parent | 1ef4dbe0d4bd0940cbaf91d431fd725b1767ec91 (diff) |
Merge branch 'eread/move-rest-of-content-from-gitlab-docs-to-gitaly-example-configuration-file' into 'master'
Move rest of content from GitLab docs to Gitaly example config file
See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/6580
Merged-by: Sami Hiltunen <shiltunen@gitlab.com>
Approved-by: Sami Hiltunen <shiltunen@gitlab.com>
Reviewed-by: Sami Hiltunen <shiltunen@gitlab.com>
Co-authored-by: Evan Read <eread@gitlab.com>
-rw-r--r-- | config.toml.example | 45 |
1 files changed, 32 insertions, 13 deletions
diff --git a/config.toml.example b/config.toml.example index d878b16ad..82b8502f8 100644 --- a/config.toml.example +++ b/config.toml.example @@ -1,5 +1,5 @@ # Example Gitaly configuration file. -# For Gitaly documentation, see https://docs.gitlab.com/ee/administration/gitaly/ +# For Gitaly documentation, see https://docs.gitlab.com/ee/administration/gitaly/. # A path which Gitaly should open a Unix socket. socket_path = "/home/git/gitlab/tmp/sockets/private/gitaly.socket" @@ -41,9 +41,14 @@ bin_dir = "/home/git/gitaly/_build/bin" # # Git settings # [git] +# # Path to Git binary. If not set, is resolved using PATH. # bin_path = "/usr/bin/git" +# # Maximum number of cached 'cat-file' processes, which constitute a pair of 'git cat-file --batch' and +# # 'git cat-file --batch-check' processes. Defaults to '100'. # catfile_cache_size = 100 -# +# # Path to GPG signing key. If not set, Gitaly doesn’t sign commits made using the UI. +# signing_key = "" + # [[git.config]] # key = fetch.fsckObjects # value = true @@ -62,32 +67,44 @@ path = "/home/git/repositories" # path = "/mnt/other_storage/repositories" # -# # You can optionally configure Gitaly to output JSON-formatted log messages to stdout +# # Optional. Configure Gitaly to output JSON-formatted log messages to stdout. # [logging] -# # The directory where Gitaly stores extra log files +# # Directory where Gitaly stores extra log files. dir = "/home/git/gitlab/log" +# # Log format. Either 'text' or 'json'. # format = "json" -# # Optional. Set log level to only log entries with that severity or above -# # One of, in order: debug, info, warn, errror, fatal, panic -# # Defaults to "info" +# # Optional. Set log level to only log entries with that severity or above. +# # Valid values are, in order, 'debug', 'info', 'warn', 'error', 'fatal', and 'panic'. Defaults to 'info'. # level = "warn" -# -# # Additionally exceptions from the Go server can be reported to Sentry +# # Additionally, exceptions from the Go server can be reported to Sentry. Sentry DSN (Data Source Name) +# # for exception monitoring. # sentry_dsn = "https://<key>:<secret>@sentry.io/<project>" +# # Sentry Environment for exception monitoring. +sentry_environment = "" -# # You can optionally configure Gitaly to record histogram latencies on GRPC method calls +# # Optional. Configure Gitaly to record histogram latencies on GRPC method calls in Prometheus. # [prometheus] +# # Prometheus stores each observation in a bucket, which means you’d get an approximation of latency. Optimizing the +# # buckets gives more control over the accuracy of the approximation. # grpc_latency_buckets = [0.001, 0.005, 0.025, 0.1, 0.5, 1.0, 10.0, 30.0, 60.0, 300.0, 1500.0] +# # Custom Git hooks that are used to perform tasks based on changes performed in any repository. [hooks] +# # Directory where custom Git hooks are installed. If left unset, no custom hooks are used. custom_hooks_dir = "/home/git/custom_hooks" +# # Gitaly must connect to the GitLab application to perform access checks when a user performs a change. [gitlab] -secret_file = "/home/git/gitlab-shell/.gitlab_shell_secret" +# # URL of the GitLab server. url = "http+unix://%2Fhome%2Fgit%2Fgitlab%2Ftmp%2Fsockets%2Fgitlab-workhorse.socket" -# Only needed if a UNIX socket is used in `url` and GitLab is configured to -# use a relative path (e.g. /gitlab). +# # 'relative_url_root' is only needed if a UNIX socket is used in 'url' and GitLab is configured to +# # use a relative path. For example, '/gitlab'. # relative_url_root = '/' +# # Path of the file containing the secret token used to authenticate with GitLab. Use either 'secret_token' or 'secret' +# # but not both. +secret_file = "/home/git/gitlab-shell/.gitlab_shell_secret" +# # Secret token used to authenticate with GitLab. +# secret = "" [gitlab.http-settings] # read_timeout = 300 @@ -99,7 +116,9 @@ self_signed_cert = false # # You can adjust the concurrency of each RPC endpoint # [[concurrency]] +# # Name of the RPC endpoint. # rpc = "/gitaly.RepositoryService/OptimizeRepository" +# # Concurrency per RPC per repository. # max_per_repo = 1 # max_queue_wait = "1m" # max_queue_size = 10 |