94 releases

new 0.5.8 Jul 4, 2024
0.5.6 Jun 8, 2024
0.4.17 Feb 7, 2024
0.4.16 Dec 23, 2023
0.1.27 Jul 19, 2023

#218 in HTTP server

Download history 13/week @ 2024-03-28 156/week @ 2024-04-04 12/week @ 2024-04-11 401/week @ 2024-04-18 14/week @ 2024-04-25 161/week @ 2024-05-02 978/week @ 2024-05-09 751/week @ 2024-05-16 113/week @ 2024-05-23 173/week @ 2024-05-30 192/week @ 2024-06-06 13/week @ 2024-06-13

378 downloads per month
Used in br-email

MIT and GPL-3.0 licenses

79KB
1.5K SLoC

br-web 网站服务端


License Crates.io Version

macOS 安装SSL证书

brew install mkcert
brew install nss
mkcert -install
mkcert -key-file ssl/127.0.0.1.key -cert-file ssl/127.0.0.1.pem localhost 127.0.0.1
{
    "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

~14MB
~257K SLoC