🏗️」 wip: Added example of config file need review && added tomlpp to ./lib in submodule

This commit is contained in:
2025-03-17 12:01:30 +01:00
parent 00f85cbed7
commit 3b83159707
3 changed files with 25 additions and 0 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "lib/tomlpp"]
path = lib/tomlpp
url = https://github.com/keyzox71/tomlpp

21
exemples/test.toml Normal file
View File

@ -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"

1
lib/tomlpp Submodule

Submodule lib/tomlpp added at 05777d656d