.
This commit is contained in:
21
src/config.hpp
Normal file
21
src/config.hpp
Normal 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
|
Reference in New Issue
Block a user