Files
webserv/config/example.toml
2022-01-13 09:24:36 +03:00

23 lines
529 B
TOML

[[server]]
name = "jopaserver"
host = "127.0.0.1"
port = 8080
error_page = "error.html"
body_size_limit = 10
[[server.location]]
location = "/"
# redirection ???
root = "/var/www/html/jopa.html"
methods = ["GET", "POST"]
directory_list = true
directory_fallback = "its_a_directory.html"
upload_accept = true
upload_dir = "/var/www/html/upload"
[[server.location]]
location = "/secret/"
root = "/var/www/html/secret.html"
methods = ["GET"]
directory_list = false
directory_fallback = "oops.html"