http-salient

Crates.iohttp-salient
lib.rshttp-salient
version0.1.1
sourcesrc
created_at2023-06-08 08:06:25.445434
updated_at2023-06-08 12:50:51.040735
descriptionSimple http webserver
homepage
repositoryhttps://github.com/GreatC0der/salient
max_upload_size
id885306
size51,178
(theunixer)

documentation

README

Salient

Simple http webserver written in rust.

Features

  • - Multithreading.
  • - Easy set up with the config file.
  • - No known vulnerabilities.
  • - Cache code or get on the fly.
  • - Statistics.

Build and install

    git clone https://github.com/GreatC0der/salient.git

    cargo install --path ./salient

Usage

Move your website files to www folder. Run salient. Config will be generated in default folder for configs, for example ~/.config on linux.

Config

  • address - Address of web server.
  • double_dot_defence - Restrict access out of www derictory.
  • caching - If enabled data will be taken from the memory, if disabled data will be loaded from a file every time it's requested.
  • statistics - Count requests.
  • statistics_output_delay - if number of requests is devisible by this value it will be displayed.
  • thread_limit - How many threads should be used to handle requests?
Commit count: 43

cargo fmt