2023-06-25 14:46:49 +00:00
|
|
|
|
diff --git a/config.toml.example.orig b/config.toml.example
|
2024-01-19 17:42:02 +00:00
|
|
|
|
index 82b8502..9982087 100644
|
2023-06-25 14:46:49 +00:00
|
|
|
|
--- a/config.toml.example.orig
|
2023-01-11 13:38:29 +00:00
|
|
|
|
+++ b/config.toml.example
|
2024-01-19 17:42:02 +00:00
|
|
|
|
@@ -2,19 +2,24 @@
|
|
|
|
|
# For Gitaly documentation, see https://docs.gitlab.com/ee/administration/gitaly/.
|
2023-01-11 13:38:29 +00:00
|
|
|
|
|
2024-01-19 17:42:02 +00:00
|
|
|
|
# A path which Gitaly should open a Unix socket.
|
2023-01-11 13:38:29 +00:00
|
|
|
|
-socket_path = "/home/git/gitlab/tmp/sockets/private/gitaly.socket"
|
|
|
|
|
+socket_path = "/run/gitlab/gitaly.socket"
|
|
|
|
|
|
2024-01-19 17:42:02 +00:00
|
|
|
|
# Directory containing Gitaly executables.
|
2023-01-11 13:38:29 +00:00
|
|
|
|
-bin_dir = "/home/git/gitaly/_build/bin"
|
|
|
|
|
+bin_dir = "/usr/bin"
|
|
|
|
|
|
2024-01-19 17:42:02 +00:00
|
|
|
|
# # Optional. The directory where Gitaly can create all files required to
|
|
|
|
|
# # properly operate at runtime. If not set, Gitaly will create a directory in
|
|
|
|
|
# # the global temporary directory. This directory must exist.
|
2023-01-11 13:38:29 +00:00
|
|
|
|
-# runtime_dir = "/home/git/gitaly/run"
|
|
|
|
|
+runtime_dir = "/run/gitaly"
|
|
|
|
|
|
2024-01-19 17:42:02 +00:00
|
|
|
|
# # Optional if socket_path is set. TCP address for Gitaly to listen on. This is insecure (unencrypted connection).
|
2023-01-11 13:38:29 +00:00
|
|
|
|
# listen_addr = "localhost:9999"
|
|
|
|
|
|
2024-01-19 17:42:02 +00:00
|
|
|
|
+# # Optional: configure where the Gitaly creates the sockets for internal connections. If unset, Gitaly will create a randomly
|
|
|
|
|
+# # named temp directory each time it boots.
|
|
|
|
|
+# # Non Gitaly clients should never connect to these sockets.
|
|
|
|
|
+internal_socket_dir = "/run/gitaly/internal"
|
|
|
|
|
+
|
|
|
|
|
# # Optional. TCP over TLS address for Gitaly to listen on.
|
|
|
|
|
# tls_listen_addr = "localhost:8888"
|
2023-01-11 13:38:29 +00:00
|
|
|
|
|
2024-01-19 17:42:02 +00:00
|
|
|
|
@@ -35,9 +40,9 @@ bin_dir = "/home/git/gitaly/_build/bin"
|
|
|
|
|
# # Gitaly supports TLS encryption. You must bring your own certificates because this isn’t provided automatically.
|
2023-01-11 13:38:29 +00:00
|
|
|
|
# [tls]
|
2024-01-19 17:42:02 +00:00
|
|
|
|
# # Path to the certificate.
|
2023-01-11 13:38:29 +00:00
|
|
|
|
-# certificate_path = '/home/git/cert.cert'
|
|
|
|
|
+# certificate_path = '/etc/gitlab/ssl/gitaly.crt'
|
2024-01-19 17:42:02 +00:00
|
|
|
|
# # Path to the key.
|
|
|
|
|
-# key_path = '/home/git/key.pem'
|
2023-01-11 13:38:29 +00:00
|
|
|
|
+# key_path = '/etc/gitlab/ssl/gitaly.key'
|
|
|
|
|
|
2023-06-25 14:46:49 +00:00
|
|
|
|
# # Git settings
|
|
|
|
|
# [git]
|
2024-01-19 17:42:02 +00:00
|
|
|
|
@@ -58,7 +63,7 @@ bin_dir = "/home/git/gitaly/_build/bin"
|
|
|
|
|
# # The name of the storage
|
2023-01-11 13:38:29 +00:00
|
|
|
|
name = "default"
|
2024-01-19 17:42:02 +00:00
|
|
|
|
# # The path to the storage.
|
2023-01-11 13:38:29 +00:00
|
|
|
|
-path = "/home/git/repositories"
|
|
|
|
|
+path = "/var/lib/gitlab/repositories"
|
|
|
|
|
|
|
|
|
|
# # You can optionally configure more storages for this Gitaly instance to serve up
|
|
|
|
|
#
|
2024-01-19 17:42:02 +00:00
|
|
|
|
@@ -70,12 +75,12 @@ path = "/home/git/repositories"
|
|
|
|
|
# # Optional. Configure Gitaly to output JSON-formatted log messages to stdout.
|
|
|
|
|
# [logging]
|
|
|
|
|
# # Directory where Gitaly stores extra log files.
|
2023-01-11 13:38:29 +00:00
|
|
|
|
-dir = "/home/git/gitlab/log"
|
2024-01-19 17:42:02 +00:00
|
|
|
|
+dir = "/vat/log/gitlab"
|
|
|
|
|
# # Log format. Either 'text' or 'json'.
|
2023-01-11 13:38:29 +00:00
|
|
|
|
-# format = "json"
|
|
|
|
|
+format = "text"
|
2024-01-19 17:42:02 +00:00
|
|
|
|
# # 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"
|
2023-01-11 13:38:29 +00:00
|
|
|
|
+level = "warn"
|
2024-01-19 17:42:02 +00:00
|
|
|
|
# # Additionally, exceptions from the Go server can be reported to Sentry. Sentry DSN (Data Source Name)
|
|
|
|
|
# # for exception monitoring.
|
2023-01-11 13:38:29 +00:00
|
|
|
|
# sentry_dsn = "https://<key>:<secret>@sentry.io/<project>"
|
2024-01-19 17:42:02 +00:00
|
|
|
|
@@ -91,18 +96,18 @@ sentry_environment = ""
|
|
|
|
|
# # Custom Git hooks that are used to perform tasks based on changes performed in any repository.
|
2023-11-28 23:47:54 +00:00
|
|
|
|
[hooks]
|
2024-01-19 17:42:02 +00:00
|
|
|
|
# # Directory where custom Git hooks are installed. If left unset, no custom hooks are used.
|
2023-01-11 13:38:29 +00:00
|
|
|
|
-custom_hooks_dir = "/home/git/custom_hooks"
|
2023-11-28 23:47:54 +00:00
|
|
|
|
+custom_hooks_dir = "/etc/gitlab/custom_hooks"
|
2023-01-11 13:38:29 +00:00
|
|
|
|
|
2024-01-19 17:42:02 +00:00
|
|
|
|
# # Gitaly must connect to the GitLab application to perform access checks when a user performs a change.
|
2023-01-11 13:38:29 +00:00
|
|
|
|
[gitlab]
|
2024-01-19 17:42:02 +00:00
|
|
|
|
# # URL of the GitLab server.
|
2023-01-11 13:38:29 +00:00
|
|
|
|
-url = "http+unix://%2Fhome%2Fgit%2Fgitlab%2Ftmp%2Fsockets%2Fgitlab-workhorse.socket"
|
|
|
|
|
+url = "http+unix://%2Frun%2Fgitlab%2Fworkhorse.socket"
|
2024-01-19 17:42:02 +00:00
|
|
|
|
# # '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'.
|
2023-01-11 13:38:29 +00:00
|
|
|
|
# relative_url_root = '/'
|
2024-01-19 17:42:02 +00:00
|
|
|
|
# # 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 = "/etc/gitlab/gitlab_shell_secret"
|
|
|
|
|
# # Secret token used to authenticate with GitLab.
|
|
|
|
|
# secret = ""
|
|
|
|
|
|