#pragma once #include #include struct Config { std::string bind_host = "127.0.0.1"; int bind_port = 8080; std::string image_proxy_url = "https://i.pixiv.cat"; }; Config load_config(const char* path); void from_json(const nlohmann::json& j, Config& config);