rust-web-server 18.8.1

Single-binary web server and reverse proxy: automatic HTTPS (Let's Encrypt), HTTP/1.1, HTTP/2 and HTTP/3, load balancing, auth and rate limiting, configured in one TOML file. Also a Rust library: routing, middleware, MCP server, ORM, background jobs. No hyper, no Tower; HTTP/2 and HTTP/3 framing via h2 and quinn.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
ip = '127.0.0.1'
port = 7888
thread_count = 200
request-allocation-size-in-bytes = 12000 # In bytes, how much memory to allocate for each request

[cors] #  CROSS ORIGIN RESOURCE SHARING
allow_all = false # true will allow all CORS requests, other CORS properties will be ignored
allow_origins = ["https://foo.example", "https://bar.example"] # won't apply if allow_all set to true
allow_methods = ["POST", "PUT"] # won't apply if allow_all set to true
allow_headers = ["content-type", "x-custom-header"] # won't apply if allow_all set to true
allow_credentials = true # won't apply if allow_all set to true
expose_headers = ["content-type", "x-custom-header"] # won't apply if allow_all set to true
max_age = "86400" # won't apply if allow_all set to true