From ea0d3220db995018335c48eb06b9794235ff436b Mon Sep 17 00:00:00 2001 From: MetroWind Date: Sun, 7 Sep 2025 09:42:33 -0700 Subject: Initial commit, mostly just copied from shrt. --- src/config.hpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/config.hpp (limited to 'src/config.hpp') diff --git a/src/config.hpp b/src/config.hpp new file mode 100644 index 0000000..1f4e01f --- /dev/null +++ b/src/config.hpp @@ -0,0 +1,23 @@ +#pragma once + +#include +#include + +#include + +struct Configuration +{ + std::string listen_address = "localhost"; + // Set this to 0 to listen to socket file. + int listen_port = 8123; + std::string socket_user = ""; + std::string socket_group = ""; + int socket_permission = 0; + std::string base_url = "http://localhost:8123/"; + std::string data_dir = "."; + std::string openid_url_prefix; + std::string client_id; + std::string client_secret; + + static mw::E fromYaml(const std::filesystem::path& path); +}; -- cgit v1.2.3-70-g09d2