mirror of
https://github.com/KeyZox71/webserv.git
synced 2025-05-10 18:08:46 +02:00
「🏗️」 wip: Added example of config file need review && added tomlpp to ./lib in submodule
This commit is contained in:
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[submodule "lib/tomlpp"]
|
||||||
|
path = lib/tomlpp
|
||||||
|
url = https://github.com/keyzox71/tomlpp
|
21
exemples/test.toml
Normal file
21
exemples/test.toml
Normal 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
1
lib/tomlpp
Submodule
Submodule lib/tomlpp added at 05777d656d
Reference in New Issue
Block a user