#br #web #http

br-web

This is an WEB SERVER

70 releases (4 breaking)

0.4.17 Feb 7, 2024
0.4.16 Dec 23, 2023
0.4.15 Nov 16, 2023
0.1.27 Jul 19, 2023

#2 in #mkcert

Download history 68/week @ 2023-11-04 120/week @ 2023-11-11 225/week @ 2023-11-18 285/week @ 2023-11-25 79/week @ 2023-12-02 72/week @ 2023-12-09 7/week @ 2023-12-16 243/week @ 2023-12-23 7/week @ 2023-12-30 7/week @ 2024-01-06 10/week @ 2024-01-13 3/week @ 2024-01-20 219/week @ 2024-01-27 31/week @ 2024-02-03 223/week @ 2024-02-10 1178/week @ 2024-02-17

1,652 downloads per month
Used in br-email

MIT and GPL-3.0 licenses

57KB
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
~246K SLoC