summaryrefslogtreecommitdiffhomepage
path: root/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.h')
-rw-r--r--config.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/config.h b/config.h
index 98a99c0..a8d6a03 100644
--- a/config.h
+++ b/config.h
@@ -3,6 +3,7 @@
#include <filesystem>
#include <string>
#include <unordered_map>
+#include <unordered_set>
#include <vector>
namespace fs = std::filesystem;
@@ -23,7 +24,7 @@ struct Path
struct Site
{
std::string name;
- std::string host;
+ std::unordered_set<std::string> hosts;
std::vector<Path> paths;
};
@@ -38,7 +39,7 @@ struct Socket
std::string address;
std::string port;
SocketProtocol protocol;
- std::vector<std::string> serve_sites; // if empty, serve all configured sites // TODO: implement
+ std::vector<std::string> serve_sites; // if empty, automatically expand to all configured sites
fs::path cert_path;
fs::path key_path;
};