配置生成逻辑优化

This commit is contained in:
2026-08-21 18:13:43 +08:00
parent ff487be64e
commit e79bbfb99c
18 changed files with 500 additions and 311 deletions
@@ -0,0 +1,6 @@
#include "Config_Default.h"
Default_Config_File make_default_drogon_config(const std::filesystem::path& directory) {
auto app = Psc::JSON::object(
{{"threads_num", 0}, {"client_max_body_size", "1000M"}, {"client_max_memory_body_size", "1000M"}});
return {Config_Section::drogon, directory / "drogon.json", Psc::JSON::object({{"app", app}})};
}