96 releases

0.6.0 Oct 24, 2024
0.5.8 Jul 4, 2024
0.4.17 Feb 7, 2024
0.4.16 Dec 23, 2023
0.1.27 Jul 19, 2023

#246 in HTTP server

Download history 80/week @ 2024-07-22 9/week @ 2024-08-26 137/week @ 2024-09-02 7/week @ 2024-09-09 6/week @ 2024-09-16 5/week @ 2024-09-23 5/week @ 2024-09-30 4/week @ 2024-10-07 2/week @ 2024-10-14 119/week @ 2024-10-21 6/week @ 2024-10-28 32/week @ 2024-11-04

159 downloads per month

MIT and GPL-3.0 licenses

77KB
1.5K SLoC

br-web 网站服务端


License Crates.io Version

macOS 安装SSL证书

brew install mkcert
brew install nss
mkcert -install
mkcert -key-file ssl/jasondengtest.cyou.key -cert-file ssl/jasondengtest.cyou.pem jasondengtest.cyou
{
    "ip": "0.0.0.0",
    "port": 8080,
    "domain": "127.0.0.1",
    "public": "/public",
    "runtime": "/runtime",
    "cors": {
        "allow_origin": [],
        "allow_methods": "GET,POST",
        "allow_headers": "content-type",
        "allow_credentials": true,
        "expose_headers": "content-disposition",
        "max_age": 1800
    },
    "ssl": false,
    "ssl_pkey": "/ssl/server.key",
    "ssl_certs": "/ssl/server.pem"
}

Dependencies

~18MB
~379K SLoC