This commit is contained in:
Your Name
2025-05-03 19:56:20 +12:00
parent aafcc4cafe
commit 6c03512637
6 changed files with 32 additions and 39 deletions

View File

@@ -17,6 +17,11 @@ bool load_config(const std::string& config_path, ServerConfig& config) {
nlohmann::json j;
file >> j;
config.host = "0.0.0.0";
config.port = 8123;
config.object_store_path = "/data/storage";
config.write_tokens = {};
// Parse write tokens
if (j.contains("write_tokens")) {
config.write_tokens = j["write_tokens"].get<std::vector<std::string>>();