see
An HTTP server for hosting static files
Features
- Supported HTTP/1 and HTTP/2
- Content compression (auto, gzip, deflate, br)
- Simple and rich configuration
Install
Download the binary from the release page
Or use cargo
to install
cargo install see
More
Use
Quick start
see start
# or
see start 8080
Start according to the configuration file
see
# or
see -c config.yml
Config
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
A simple example:
- server:
listen: 80
root: /root/www
- server:
listen: 443
root: /root/www
https:
name: domain.com
key: /your/ssl.key
cert: /your/ssl.pem
Complete configuration documentation: docs/index.md