Files
webserv/exemples/test.toml
2025-04-23 12:43:38 +02:00

27 lines
483 B
TOML

log_file = "test.log"
[server]
server_names = { "localhost", "2B5.local" }
host = "0.0.0.0"
port = 8080
[server.error_pages]
404 = "not_found.html"
401 = "unauthorized.html"
402 = "uwu.html"
[server.location./]
methods = { "GET" }
root = "/var/www/html"
dirlist = true
client_max_body_size = "10M"
[server.location./api]
methods = { "GET", "POST" }
root = "/var/www/api"
upload_path = "/etc/webserv/up"
cgi.go = "/bin/go"
[server.location./redir]
redirect = "https://kanel.ovh"