refactor(config): use toml file

This commit is contained in:
2026-02-10 00:23:17 +01:00
parent 3e936767ce
commit cfaae5529e
9 changed files with 167 additions and 86 deletions

22
config.toml Normal file
View File

@@ -0,0 +1,22 @@
# Default server values
[server]
host = "localhost"
port = "3030"
# Root folder in case there are no virtual hosts
root = "www"
[[virtual_hosts]]
domain = "localhost"
root = "www"
[[virtual_hosts.pages]]
status = "404"
path = "www/pages/404.html"
[[virtual_hosts.pages]]
status = "505"
path = "www/pages/505.html"
[[virtual_hosts]]
domain = "example.com"
root = "example_site"