# br-web 网站服务端
----

[![License](https://img.shields.io/crates/l/MIT)](LICENSE-MIT)
[![Crates.io Version](https://img.shields.io/crates/v/br-web)](https://crates.io/crates/br-web)

# macOS 安装SSL证书
````shell
brew install mkcert
brew install nss
mkcert -install
````
```shell
mkcert -key-file ssl/127.0.0.1.key -cert-file ssl/127.0.0.1.pem localhost 127.0.0.1
```

```json5
{
    "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"
}
```