🦀 HTTP server made in Rust with no dependency.
Find a file
2023-10-11 23:03:40 +02:00
.github/workflows use self-hosted runner 2023-10-11 23:03:40 +02:00
error 400.html & 404.html 2022-10-25 09:07:37 +02:00
src remove dead_code 2023-10-06 08:46:32 +02:00
.gitignore use config file 2023-10-05 21:25:18 +02:00
Cargo.lock use config crate 2023-10-05 20:45:11 +02:00
Cargo.toml use config crate 2023-10-05 20:45:11 +02:00
Config.toml use config file 2023-10-05 21:25:18 +02:00
README.md readme update 2023-10-06 10:31:30 +02:00

GotRusty

Simple HTTP server made in Rust.

Please do not use in prod.

As per wrk (8t,8c) on a MacBook Pro M1, this server handles 1.7k req/s. (terrible)

Config

Environment variables can be used to set any settings including config file path: GR_Config: /etc/gotrusty/Config.toml

(to set a setting from env var prefix with GR_)

  • addr (defaulted to 127.0.0.1),
  • port (defaulted to 1337),
  • file_root (defaulted to .),
  • errors_root (defaulted to ./error),
  • mime_default (defaulted to text/plain).