pixwhile/config.h

15 lines
333 B
C
Raw Normal View History

2023-04-03 08:57:51 +00:00
#pragma once
#include <string>
#include <nlohmann/json.hpp>
2023-04-06 12:24:09 +00:00
#include "blankie/murl.h"
2023-04-03 08:57:51 +00:00
struct Config {
std::string bind_host = "127.0.0.1";
int bind_port = 8080;
2023-04-06 12:24:09 +00:00
blankie::murl::Url image_proxy_url{"https://i.pixiv.cat"};
2023-04-03 08:57:51 +00:00
};
Config load_config(const char* path);
void from_json(const nlohmann::json& j, Config& config);