Repository navigation
Expand file tree
/
Copy pathgit-server.example.toml
More file actions
64 lines (52 loc) · 2.65 KB
/
Copy pathgit-server.example.toml
File metadata and controls
64 lines (52 loc) · 2.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Example git-server configuration file. Every key is optional; pass this
# file with `--config git-server.example.toml` (or GIT_SERVER_CONFIG=...).
# Precedence is CLI flag > GIT_SERVER_* environment variable > this file >
# the built-in default shown below for each key.
# Address the HTTP server listens on.
bind_addr = "127.0.0.1:8470"
# Object storage URL backing all repository data.
storage_url = "file://./git-server-data"
# Blob contents at or below this many bytes are stored inline in SlateDB;
# larger blobs are offloaded to object storage.
inline_threshold = 65536
# Create unknown repositories on first push.
auto_create_repos = true
# Local directory for per-request pack staging. The built-in default is the
# system temp directory joined with "git-server-staging"; shown here for a
# typical Linux host.
staging_root = "/tmp/git-server-staging"
# Directory for the disk part cache. Left unset (the built-in default), SlateDB
# uses its in-memory block cache and no part cache is installed. Set it to cache
# object parts on local disk: one cache, shared by SlateDB's SST reads and
# offloaded-blob reads, under a single byte budget.
# cache_dir = "/var/cache/git-server"
# Capacity of the in-memory SlateDB block cache (parsed SST blocks), in bytes
# (512 MiB). Only meaningful when cache_dir is set; SST byte caching lives in
# the disk part cache.
cache_memory_bytes = 536870912
# Byte budget for the whole disk part cache directory (32 GiB). Only meaningful
# when cache_dir is set.
cache_disk_bytes = 34359738368
# Re-warm age threshold in seconds for request-triggered per-repo cache
# warming. 0 disables request-triggered warming. Warming only takes effect
# when cache_dir is set (no disk part cache to fill otherwise).
warm_ttl_secs = 900
# zlib level (0-9) at which object content is deflated when written. Higher
# levels shrink stored objects (and the packs served from them) at the cost of
# more CPU at write time; inflate is level-agnostic, so this never affects
# reads.
object_compression_level = 6
# tracing-subscriber EnvFilter directive used when RUST_LOG is unset; RUST_LOG
# always overrides this.
log_filter = "info"
# SlateDB storage-engine tuning. Any key from SlateDB's `Settings` is accepted
# here; keys left unspecified keep git-server's defaults (deep merge, not
# replace, so a nested override does not reset its siblings). The two values
# below are git-server's tuned defaults; the nested example raises compactor
# concurrency while leaving the rest of the compactor options untouched.
# [slatedb]
# l0_sst_size_bytes = 268435456 # 256 MiB
# max_unflushed_bytes = 2147483648 # 2 GiB
#
# [slatedb.compactor_options]
# max_concurrent_compactions = 8