This commit is contained in:
Your Name
2025-04-30 21:30:55 +12:00
parent 69ecc77d51
commit fe9c940a22
14 changed files with 26367 additions and 2 deletions

21
src/config.hpp Normal file
View File

@@ -0,0 +1,21 @@
#ifndef CONFIG_HPP
#define CONFIG_HPP
#include <string>
#include <vector>
#include <filesystem>
namespace dropshell {
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 dropshell
#endif