diff --git a/src/confighttp.cpp b/src/confighttp.cpp index f0a53becded..486cf588722 100644 --- a/src/confighttp.cpp +++ b/src/confighttp.cpp @@ -554,10 +554,11 @@ namespace confighttp { outputTree.push_back(std::make_pair("displays", displays)); auto vars = config::parse_config(file_handler::read_file(config::sunshine.config_file.c_str())); - + pt::ptree config_file; for (auto &[name, value] : vars) { - outputTree.put(std::move(name), std::move(value)); + config_file.put(std::move(name), std::move(value)); } + outputTree.push_back(std::make_pair("config_file", config_file)); } void diff --git a/src_assets/common/assets/web/config.html b/src_assets/common/assets/web/config.html index 34f20d8acae..71cad628ed3 100644 --- a/src_assets/common/assets/web/config.html +++ b/src_assets/common/assets/web/config.html @@ -1247,10 +1247,9 @@