Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vilfa/twebd

A simple multi-threaded web server written in Rust.
https://github.com/vilfa/twebd

http https multithreading rust tls web-server

Last synced: 23 days ago
JSON representation

A simple multi-threaded web server written in Rust.

Awesome Lists containing this project

README

        

# twebd

Twebd is a **t**iny **web** **d**aemon with very simple multi-threading and support for both http and https.
This project was made for fun, its aim is to provide simple web server functionaility for personal projects.

## Installation

Clone the repo.
```bash
$ git clone https://github.com/vilfa/twebd
$ cd twebd
```

You can then install the package with cargo and run it as any other executable
```bash
$ cargo install --path .
$ twebd [FLAGS] [OPTIONS]
```
**OR**

just compile and run it directly.
```bash
$ cargo r -- [FLAGS] [OPTIONS]
```
## Usage/Examples

```
USAGE:
twebd.exe [FLAGS] [OPTIONS]

FLAGS:
-h, --help
Prints help information

-s, --https
Use https, requires a certificate and private key

-V, --version
Prints version information

OPTIONS:
-a, --address
Sets the server IP (v4/v6) address

-d, --directory
Sets the server root/public_html/wwwroot directory

-c, --https-cert
Path to the server certificate file

-k, --https-key
Path to the server private key file

-l, --loglevel
Sets the server logging verbosity [possible values: error, warn, info, debug, trace]

-p, --port
Sets the server port number [possible values: 1..65535]

-t, --threads
Sets the number of threads used by the server [possible values: 1..10]
```


## License

[MIT](https://github.com/vilfa/twebd/blob/master/LICENSE)