ports/devel/gitaly/files/patch-config.toml.example

59 lines
2.6 KiB
Text

--- config.toml.example.orig 2025-03-19 10:31:26 UTC
+++ config.toml.example
@@ -2,10 +2,10 @@
# For Gitaly documentation, see https://docs.gitlab.com/administration/gitaly/.
# A path which Gitaly should open a Unix socket.
-socket_path = "/home/git/gitlab/tmp/sockets/private/gitaly.socket"
+socket_path = "%%PREFIX%%/www/gitlab/tmp/sockets/private/gitaly.socket"
# Directory containing Gitaly executables.
-bin_dir = "/home/git/gitaly/_build/bin"
+bin_dir = "%%PREFIX%%/share/gitaly/bin/"
# # Optional. The directory where Gitaly can create all files required to
# # properly operate at runtime. If not set, Gitaly will create a directory in
@@ -40,9 +40,9 @@ bin_dir = "/home/git/gitaly/_build/bin"
# key_path = '/home/git/key.pem'
# # Git settings
-# [git]
-# # Path to Git binary. If not set, is resolved using PATH.
-# bin_path = "/usr/bin/git"
+[git]
+# Path to Git binary. If not set, is resolved using PATH.
+bin_path = "%%PREFIX%%/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
@@ -58,7 +58,7 @@ name = "default"
# # The name of the storage
name = "default"
# # The path to the storage.
-path = "/home/git/repositories"
+path = "%%PREFIX%%/git/repositories"
# # You can optionally configure more storages for this Gitaly instance to serve up
#
@@ -89,18 +89,18 @@ sentry_environment = ""
# # 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"
+custom_hooks_dir = "%%PREFIX%%/git/custom_hooks"
# # Gitaly must connect to the GitLab application to perform access checks when a user performs a change.
[gitlab]
# # URL of the GitLab server.
-url = "http+unix://%2Fhome%2Fgit%2Fgitlab%2Ftmp%2Fsockets%2Fgitlab-workhorse.socket"
+url = "http+unix://%2Fusr%2Flocal%2Fwww%2Fgitlab%2Ftmp%2Fsockets%2Fgitlab-workhorse.socket"
# # '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_file = "%%PREFIX%%/share/gitlab-shell/.gitlab_shell_secret"
# # Secret token used to authenticate with GitLab.
# secret = ""