From df2abe6604432a82a39e2369fbbab2bf607e9f9b Mon Sep 17 00:00:00 2001 From: 3lswear Date: Fri, 31 Dec 2021 19:09:34 +0300 Subject: [PATCH] config start --- config/example.toml | 9 +++++++++ src/config/parse.cpp | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 config/example.toml create mode 100644 src/config/parse.cpp diff --git a/config/example.toml b/config/example.toml new file mode 100644 index 0000000..779f903 --- /dev/null +++ b/config/example.toml @@ -0,0 +1,9 @@ +[[server]] + name = "jopaserver" + port = 8080 + host = "127.0.0.1" + error_page = "error.html" + body_size_limit = 10 + [[location]] + location = "/" + root = "/var/www/html/jopa.html" diff --git a/src/config/parse.cpp b/src/config/parse.cpp new file mode 100644 index 0000000..39a8abe --- /dev/null +++ b/src/config/parse.cpp @@ -0,0 +1,9 @@ +#include "webserv.hpp" +#include + +namespace config +{ + void parse( +} + +