Skip to content

简介

MMS-SERVER全面支持 HTTPS、RTMPS、RTSPS、WSS,并支持按域名维度单独配置各个证书

配置

  1. 首先需要在顶层mms.yaml配置文件中配置证书根目录的相对路径(相对与mms-live-server可执行文件),并使能https等功能
yaml
cert_root: "./certs" #证书存储根路径
log_level: debug
https:
  enabled: on
  port: 8081
rtmps:
  enabled: on
  port: 1938

各个域名的证书文件,在各个域名的独立目录下,例如:

├── mms-live-server     # 可执行二进制文件
├── config/             # 配置文件
├── certs/              # 系统配置文件  
│   ├── test.publish.com/          # 域名证书目录
│   │   ├── test.publish.com.crt
│   │   ├── test.publish.com.key      
│   ├── test.play.com/             # 域名证书目录
│   │   ├── test.play.com.crt
│   │   ├── test.play.com.key

如果证书或者key不存在,那么相关https/rtmps等会失败 2. 需要在各个域名配置中,配置相应的证书文件名,如在test.publish.com.yaml中:

yaml
type: publish
name: test.publish.com
key_file: test.publish.com.key    # 与上面文件名一致
cert_file: test.publish.com.crt
apps:
  - name: app                   #接入点名称

Released under the MIT License.