#server #webserver #http #html #static

bin+lib statix

A CLI http server for static file sharing

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

#87 in HTTP server

Download history 65/week @ 2022-01-24 20/week @ 2022-01-31 18/week @ 2022-02-07 39/week @ 2022-02-14 42/week @ 2022-02-21 18/week @ 2022-02-28 3/week @ 2022-03-07 76/week @ 2022-03-14 225/week @ 2022-03-21 26/week @ 2022-04-04 176/week @ 2022-04-25 225/week @ 2022-05-02 26/week @ 2022-05-09

427 downloads per month

MIT license

18KB
416 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

~5.5MB
~131K SLoC