21 lines
423 B
C++
21 lines
423 B
C++
#ifndef CONFIG_HPP
|
|
#define CONFIG_HPP
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
#include <filesystem>
|
|
|
|
namespace simple_object_storage {
|
|
|
|
struct ServerConfig {
|
|
std::vector<std::string> write_tokens;
|
|
std::filesystem::path object_store_path;
|
|
std::string host = "0.0.0.0";
|
|
uint16_t port = 80;
|
|
};
|
|
|
|
bool load_config(const std::string& config_path, ServerConfig& config);
|
|
|
|
} // namespace simple_object_storage
|
|
|
|
#endif |