Working.
This commit is contained in:
@@ -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>>();
|
||||
|
Reference in New Issue
Block a user