rhttp/config.toml

35 lines
672 B
TOML

port = 8080
[sites]
[sites."example.com"]
hostname = "example.com"
[[sites."example.com".routes]]
type = "static"
path_pattern = "/*"
root = "./public"
index = ["index.html", "index.htm"]
directory_listing = false
[[sites."example.com".routes]]
type = "reverse_proxy"
path_pattern = "/api/*"
target = "http://localhost:3000"
[sites."api.example.com"]
hostname = "api.example.com"
[[sites."api.example.com".routes]]
type = "reverse_proxy"
path_pattern = "/*"
target = "http://backend:3001"
[sites."static.example.com"]
hostname = "static.example.com"
[[sites."static.example.com".routes]]
type = "static"
path_pattern = "/*"
root = "./static"
index = ["index.html"]