mirror of
https://github.com/ossrs/srs.git
synced 2025-11-24 11:54:21 +08:00
* rpm support 提供全套rpm打包方案,降低软件使用的入门难度: 1、FHS路径标准化 2、全新的init/systemd启动脚本,同时支持el6和el7 3、普通用户身份运行 4、开箱即用的默认配置文件 5、自动日志轮转 * Create srs.spec
37 lines
673 B
Plaintext
37 lines
673 B
Plaintext
# main config for srs.
|
|
# @see full.conf for detail config.
|
|
|
|
daemon off;
|
|
pid /var/lib/srs/srs.pid;
|
|
work_dir /var/lib/srs;
|
|
listen 1935;
|
|
max_connections 1000;
|
|
srs_log_tank file;
|
|
srs_log_file /var/log/srs/srs.log;
|
|
|
|
http_api {
|
|
enabled on;
|
|
listen 1985;
|
|
}
|
|
|
|
http_server {
|
|
enabled on;
|
|
listen 8080;
|
|
dir /usr/share/srs/html;
|
|
}
|
|
|
|
stats {
|
|
network 0;
|
|
disk sda sdb xvda xvdb;
|
|
}
|
|
|
|
vhost __defaultVhost__ {
|
|
hls {
|
|
enabled on;
|
|
}
|
|
http_remux {
|
|
enabled on;
|
|
mount [vhost]/[app]/[stream].flv;
|
|
}
|
|
}
|