diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-04-04 19:24:16 +0200 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-04-04 19:24:16 +0200 |
commit | 1fcaed7a34cce8e55bb071d503bb583f715e7d37 (patch) | |
tree | 9c6bcaa267a66b902f308ee253a79da874780e55 /config.h | |
parent | 938fbe7a2f2f10a3abb530a9463e57fc20f40038 (diff) |
Serve configured sockets
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; }; |