rsweb

Crates.iorsweb
lib.rsrsweb
version0.9.12
sourcesrc
created_at2021-11-07 12:10:00.558229
updated_at2023-07-19 10:08:59.655769
descriptionlibrary for creating multithreaded web servers in rust
homepagehttps://gitlab.sokoll.com/moritz/rsweb
repositoryhttps://gitlab.sokoll.com/moritz/rsweb
max_upload_size
id478049
size113,224
Moritz Sokoll (ULUdev)

documentation

https://docs.rs/rsweb

README

rsweb

pipeline status

a web server and creation library for multithreaded web servers

Installation

rsweb has a docker image uludev/rsweb:latest which will run an x86_64 executable. It expects a configuration file to be in /etc/rsweb/rsweb.config.toml and it will log to /var/log/rsweb/latest.log.

Configuration

An example configuration looks like this:

[http]
port = 8080
ip = "127.0.0.1"
threads = 10
logfile = "log.txt"
[http.resources]
root = "."
index = "/test.html"
aliases = ["/test:/test.html"]
routes = ["/route:/index.html"]

SSL

rsweb has an SSL implementation. An example configuration using SSL looks like this:

# optional addition of an http server for compatibility reasons
[http]
port = 8080
ip = "127.0.0.1"
threads = 1
logfile = "alternate_log.txt"
[http.resources]
root = "."
routes = ["/*:https://localhost:4343"]

[ssl.resources]
root = "."
aliases = ["/test:/test.html", "/:/test.html"]
[ssl]
port = 4343
ip = "127.0.0.1"
threads = 10
logfile = "log.txt"
private_key = "privkey.pem"
certificate_chain = "certs.pem"
Commit count: 0

cargo fmt