Skip to content

Commit 7aa73ad

Browse files
committed
sync upstream config based on gitlab-foss v15.0.0
1 parent 1417c92 commit 7aa73ad

File tree

9 files changed

+454
-120
lines changed

9 files changed

+454
-120
lines changed

assets/runtime/config/gitaly/config.toml

Lines changed: 55 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,14 @@ socket_path = "{{GITALY_SOCKET_PATH}}"
77
# The directory where Gitaly's executables are stored
88
bin_dir = "/usr/local/bin/"
99

10+
# # Optional: The directory where Gitaly can create all files required to
11+
# # properly operate at runtime. If not set, Gitaly will create a directory in
12+
# # the global temporary directory. This directory must exist.
13+
# runtime_dir = "/home/git/gitaly/run"
14+
1015
# # Optional: listen on a TCP socket. This is insecure (no authentication)
1116
# listen_addr = "localhost:9999"
12-
# tls_listen_addr = "localhost:8888
17+
# tls_listen_addr = "localhost:8888"
1318

1419
# # Optional: export metrics via Prometheus
1520
# prometheus_listen_addr = "localhost:9236"
@@ -32,6 +37,9 @@ bin_dir = "/usr/local/bin/"
3237
# [git]
3338
# bin_path = "/usr/bin/git"
3439
# catfile_cache_size = 100
40+
# [[git.config]]
41+
# key = fetch.fsckObjects
42+
# value = true
3543

3644
[[storage]]
3745
name = "default"
@@ -87,12 +95,54 @@ dir = "{{GITLAB_GITALY_INSTALL_DIR}}/ruby"
8795
# The directory where gitlab-shell is installed
8896
dir = "{{GITLAB_SHELL_INSTALL_DIR}}"
8997

90-
# # You can adjust the concurrency of each RPC endpoint
91-
# [[concurrency]]
92-
# rpc = "/gitaly.RepositoryService/GarbageCollect"
93-
# max_per_repo = 1
98+
[hooks]
99+
custom_hooks_dir = "/home/git/gitlab-shell/hooks"
94100

95101
[gitlab]
96102
secret_file = "/home/git/gitlab-shell/.gitlab_shell_secret"
97103
url = "http://localhost:8181{{GITLAB_RELATIVE_URL_ROOT}}"
104+
# Only needed if a UNIX socket is used in `url` and GitLab is configured to
105+
# use a relative path (e.g. /gitlab).
106+
# relative_url_root = '/gitlab'
107+
108+
[gitlab.http-settings]
109+
# read_timeout = 300
110+
# user = someone
111+
# password = somepass
112+
# ca_file = /etc/ssl/cert.pem
113+
# ca_path = /etc/pki/tls/certs
114+
# self_signed_cert = {{SSL_SELF_SIGNED}}
98115

116+
# # You can adjust the concurrency of each RPC endpoint
117+
# [[concurrency]]
118+
# rpc = "/gitaly.RepositoryService/GarbageCollect"
119+
# max_per_repo = 1
120+
# max_queue_wait = "1m"
121+
# max_queue_size = 10
122+
123+
# [[rate_limiting]]
124+
# rpc = "/gitaly.SmartHTTPService/PostUploadPackWithSidechannel"
125+
# interval = "1m"
126+
# burst = 5
127+
128+
# Daily maintenance designates time slots to run daily to optimize and maintain
129+
# enabled storages.
130+
# [daily_maintenance]
131+
# start_hour = 23
132+
# start_minute = 30
133+
# duration = "45m"
134+
# storages = ["default"]
135+
# disabled = false
136+
137+
# [cgroups]
138+
# count = 10
139+
# mountpoint = "/sys/fs/cgroup"
140+
# hierarchy_root = "gitaly"
141+
142+
# [cgroups.memory]
143+
# enabled = true
144+
# limit = 1048576
145+
146+
# [cgroups.cpu]
147+
# enabled = true
148+
# shares = 512

assets/runtime/config/gitlab-pages/config

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ auth-client-id={{GITLAB_PAGES_ACCESS_CLIENT_ID}}
22
auth-client-secret={{GITLAB_PAGES_ACCESS_CLIENT_SECRET}}
33
auth-redirect-uri={{GITLAB_PAGES_ACCESS_REDIRECT_URI}}
44
auth-secret={{GITLAB_PAGES_ACCESS_SECRET}}
5+
listen-http=:{{GITLAB_PAGES_PORT}}
6+
pages-root={{GITLAB_SHARED_DIR}}/shared/pages
7+
api-secret-key={{GITLAB_INSTALL_DIR}}/.gitlab_pages_secret
8+
pages-domain={{GITLAB_PAGES_DOMAIN}}
59
gitlab-server={{GITLAB_PAGES_ACCESS_CONTROL_SERVER}}
610
artifacts-server={{GITLAB_PAGES_ARTIFACTS_SERVER_URL}}
711
internal-gitlab-server=http://localhost:8181
8-
api-secret-key={{GITLAB_INSTALL_DIR}}/.gitlab_pages_secret

assets/runtime/config/gitlab-shell/config.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,33 @@ user: git
1515
# "http+unix://%2Fpath%2Fto%2Fsocket"
1616
gitlab_url: "http://localhost:8080{{GITLAB_RELATIVE_URL_ROOT}}"
1717

18+
# When a http+unix:// is used in gitlab_url, this is the relative URL root to GitLab.
19+
# Not used if gitlab_url is http:// or https://.
20+
# gitlab_relative_url_root: "/"
21+
1822
# See installation.md#using-https for additional HTTPS configuration details.
1923
http_settings:
2024
# read_timeout: 300
2125
# user: someone
2226
# password: somepass
2327
# ca_file: /etc/ssl/cert.pem
2428
# ca_path: /etc/pki/tls/certs
25-
self_signed_cert: {{SSL_SELF_SIGNED}}
29+
#
2630

2731
# File used as authorized_keys for gitlab user
2832
auth_file: "{{GITLAB_HOME}}/.ssh/authorized_keys"
2933

34+
# SSL certificate dir where custom certificates can be placed
35+
# https://golang.org/pkg/crypto/x509/
36+
# ssl_cert_dir: /opt/gitlab/embedded/ssl/certs/
37+
3038
# File that contains the secret key for verifying access to GitLab.
3139
# Default is .gitlab_shell_secret in the gitlab-shell directory.
3240
secret_file: "{{GITLAB_SHELL_INSTALL_DIR}}/.gitlab_shell_secret"
33-
34-
# Parent directory for global custom hook directories (pre-receive.d, update.d, post-receive.d)
35-
# Default is hooks in the gitlab-shell directory.
36-
custom_hooks_dir: "{{GITLAB_SHELL_INSTALL_DIR}}/hooks"
41+
#
42+
# The secret field supersedes the secret_file, and if set that
43+
# file will not be read.
44+
# secret: "supersecret"
3745

3846
# Log file.
3947
# Default is gitlab-shell.log in the root directory.
@@ -42,7 +50,7 @@ log_file: "{{GITLAB_LOG_DIR}}/gitlab-shell/gitlab-shell.log"
4250
# Log level. INFO by default
4351
log_level: INFO
4452

45-
# Log format. 'text' by default
53+
# Log format. 'json' by default, can be changed to 'text' if needed
4654
# log_format: json
4755

4856
# Audit usernames.

assets/runtime/config/gitlabhq/database.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,12 @@ production:
1212
password: "{{DB_PASS}}"
1313
pool: {{DB_POOL}}
1414
prepared_statements: {{DB_PREPARED_STATEMENTS}}
15-
15+
# load_balancing:
16+
# hosts:
17+
# - host1.example.com
18+
# - host2.example.com
19+
# discover:
20+
# nameserver: 1.2.3.4
21+
# port: 8600
22+
# record: secondary.postgresql.service.consul
23+
# interval: 300

0 commit comments

Comments
 (0)