aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/config.cpp
diff options
context:
space:
mode:
authorZousar Shaker <[email protected]>2025-03-27 08:44:43 -0600
committerGitHub Enterprise <[email protected]>2025-03-27 08:44:43 -0600
commit697ba032e65248352305920fb90024e7ba6885f3 (patch)
tree055e4369f3691d32068407ca72c07d4f67d2303a /src/zenserver/config.cpp
parentMerge branch 'main' into zs/ui-show-cook-artifacts (diff)
parentoptional compress of block chunks (#326) (diff)
downloadzen-697ba032e65248352305920fb90024e7ba6885f3.tar.xz
zen-697ba032e65248352305920fb90024e7ba6885f3.zip
Merge branch 'main' into zs/ui-show-cook-artifacts
Diffstat (limited to 'src/zenserver/config.cpp')
-rw-r--r--src/zenserver/config.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/zenserver/config.cpp b/src/zenserver/config.cpp
index 0da98210c..d3af0c6a6 100644
--- a/src/zenserver/config.cpp
+++ b/src/zenserver/config.cpp
@@ -495,6 +495,9 @@ ParseConfigFile(const std::filesystem::path& Path,
LuaOptions.AddOption("gc.projectstore.duration.seconds"sv,
ServerOptions.GcConfig.ProjectStore.MaxDurationSeconds,
"gc-projectstore-duration-seconds");
+ LuaOptions.AddOption("gc.buildstore.duration.seconds"sv,
+ ServerOptions.GcConfig.BuildStore.MaxDurationSeconds,
+ "gc-buildstore-duration-seconds");
////// security
LuaOptions.AddOption("security.encryptionaeskey"sv, ServerOptions.EncryptionKey, "encryption-aes-key"sv);
@@ -963,6 +966,13 @@ ParseCliOptions(int argc, char* argv[], ZenServerOptions& ServerOptions)
options.add_option("gc",
"",
+ "gc-buildstore-duration-seconds",
+ "Max duration in seconds before build store entries get evicted. Default set to 604800 (1 week)",
+ cxxopts::value<int32_t>(ServerOptions.GcConfig.BuildStore.MaxDurationSeconds)->default_value("604800"),
+ "");
+
+ options.add_option("gc",
+ "",
"disk-reserve-size",
"Size of gc disk reserve in bytes. Default set to 268435456 (256 Mb). Set to zero to disable.",
cxxopts::value<uint64_t>(ServerOptions.GcConfig.DiskReserveSize)->default_value("268435456"),