Introduction
MMS-SERVER fully supports HTTPS, RTMPS, RTSPS, and WSS, with the ability to configure certificates separately for each domain.
Configuration
- First, configure the root directory of the certificate in the top-level
mms.yaml
configuration file. The path should be relative to themms-live-server
executable file, and HTTPS and other secure protocols should be enabled:
yaml
cert_root: "./certs" # Root path for certificate storage
log_level: debug
https:
enabled: on
port: 8081
rtmps:
enabled: on
port: 1938
The certificate files for each domain should be placed in their respective directories, for example:
├── mms-live-server # Executable binary file
├── config/ # Configuration files
├── certs/ # System configuration directory
│ ├── test.publish.com/ # Domain certificate directory
│ │ ├── test.publish.com.crt
│ │ ├── test.publish.com.key
│ ├── test.play.com/ # Domain certificate directory
│ │ ├── test.play.com.crt
│ │ ├── test.play.com.key
If the certificate or key does not exist, the related HTTPS/RTMPS services will fail.
- You must also specify the corresponding certificate filenames in the configuration of each domain. For example, in
test.publish.com.yaml
:
yaml
type: publish
name: test.publish.com
key_file: test.publish.com.key # Must match the filename above
cert_file: test.publish.com.crt
apps:
- name: app # Access point name