summaryrefslogtreecommitdiffhomepage
path: root/config.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-04-04 19:24:16 +0200
committerRoland Reichwein <mail@reichwein.it>2020-04-04 19:24:16 +0200
commit1fcaed7a34cce8e55bb071d503bb583f715e7d37 (patch)
tree9c6bcaa267a66b902f308ee253a79da874780e55 /config.h
parent938fbe7a2f2f10a3abb530a9463e57fc20f40038 (diff)
Serve configured sockets
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;
};