A simple and fast web server
- Supported HTTP/1 and HTTP/2
- Content compression (auto, gzip, deflate, br)
- Support directory list
- HTTP request proxy
- ...
Download the binary from the release page
cargo install see
# or
cargo install --git https://github.com/wyhaya/see
docker pull wyhaya/see
Example
Add the following to config.yml
- server:
listen: 80
echo: Hello world
mkdir your-config && vim your-config/config.yml
Run container
docker run -idt --name see -p 80:80 -p 443:443 -v your-config:/.see wyhaya/see
Open http://127.0.0.1 and you should see hello world
.
Quick start in current directory
see start
Use specified port and directory
see start -b 0.0.0.0:80 -p /root/www
Use yaml
format as a configuration file, You can use see -c config.yml
to specify the configuration file location
The default configuration file is in ~/.see/config.yml
- server:
listen: 80
root: /root/www
- server:
listen: 443
root: /root/www
host: example.com
https:
key: ./ssl.key
cert: ./ssl.pem
Click to view document