22 stable releases (4 major)

4.8.3 Feb 28, 2022
4.8.2 Feb 20, 2022
4.7.2 Jan 30, 2022
3.0.0 Jan 1, 2022
0.1.2 Dec 25, 2021

#1131 in HTTP server

47 downloads per month

MIT license

19KB
411 lines

Statix Made with ❤ by @Octalbyte

statix

Static file server (Rust).

Install and Run

cargo install statix
statix #On the folder you want to host

Features and switches

  • --host <String> set host
  • --port <i32> set port
  • --ssl <bool> set if server should have ssl, then set file paths with --crt <String> (default cert.pem) and --key <String> (default key.pem)
  • --threads<i32> set number of threads to be spawned
  • --cors <String> set the value of header Access-Control-Allow-Origin
  • --blocktor Block requests made through TOR
  • --username <String> Username for authentication (If None, there will be no authentication required)
  • --pwd <String> Password for authentication.
  • --help display more help

Dependencies

~8–16MB
~209K SLoC