16 lines
382 B
C++
16 lines
382 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <nlohmann/json.hpp>
|
|
#include "blankie/murl.h"
|
|
|
|
struct Config {
|
|
std::string bind_host = "127.0.0.1";
|
|
int bind_port = 8080;
|
|
blankie::murl::Url image_proxy_url{"https://i.pixiv.cat"};
|
|
std::optional<std::string> canonical_origin;
|
|
};
|
|
|
|
Config load_config(const char* path);
|
|
void from_json(const nlohmann::json& j, Config& config);
|