Files
candy/config.example_full.toml
2024-06-27 15:31:59 +08:00

33 lines
525 B
TOML

default_type = "application/octet-stream"
[types]
wasm = "application/wasm"
[[host]]
ip = "0.0.0.0"
port = 4000
timeout = 15
[host.headers]
X-Powered-By = "candy"
[[host.route]]
index = ["index.html"]
location = "/"
root = "./html"
[host.route.error_page]
status = 404
page = "404.html"
[[host.route]]
index = ["index.html"]
location = "/candy/"
root = "./docs/build"
[host.route.error_page]
status = 404
page = "404.html"
[[host.route]]
index = ["index.html"]
location = "/proxy/"
proxy_pass = "http://localhost:3000/"