diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..228b417 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "lib/tomlpp"] + path = lib/tomlpp + url = https://github.com/keyzox71/tomlpp diff --git a/exemples/test.toml b/exemples/test.toml new file mode 100644 index 0000000..0c3b0ff --- /dev/null +++ b/exemples/test.toml @@ -0,0 +1,21 @@ +[server] +server_names = { "localhost", "2B5.local" } # can be a array or a str +port = { 8080, 8090 } # can be a array or a int + +root = "/nfs/adjoly/workspace/kanel.ovh" +max_post_size = "10M" + +cookies = true +uploads = false +dirlist = true + +methods = {"GET", "POST", "DELETE"} +index = "index.html" + +[server.error_page] +404 = "not_found.html" +401 = "unauthorized.html" +402 = "uwu.html" + +[server.cgi] +py = "/usr/bin/python3" diff --git a/lib/tomlpp b/lib/tomlpp new file mode 160000 index 0000000..05777d6 --- /dev/null +++ b/lib/tomlpp @@ -0,0 +1 @@ +Subproject commit 05777d656d0b0f499dc3ddf1e3a9b18eb819ada5