Skip to content

Commit 37fc521

Browse files
committed
[dev] add configuration instructions.
1 parent 5c22bd4 commit 37fc521

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

README.CN.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,15 @@
8080
dnf install https://extras.getpagespeed.com/release-el$(rpm -E %{rhel})-latest.rpm
8181
sudo dnf --disablerepo=rhel-8-for-x86_64-appstream-rpms install nginx-module-flv
8282

83+
安装完毕后,HTTP-FLV功能的配置文件`http-flv.conf`和RTMP功能的配置文件`rtmp.conf`会被放在`/etc/nginx/http-flv`目录下,通过`include`手工将它们添加到`/etc/nginx/nginx.conf`,以开启HTTP-FLV和RTMP功能:
84+
85+
http {
86+
...
87+
include /etc/nginx/http-flv/http-flv.conf;
88+
}
89+
90+
include /etc/nginx/http-flv/rtmp.conf;
91+
8392
添加以下配置到`/etc/nginx/nginx.conf`,启动或者重启NGINX来启用本模块:
8493

8594
load_module modules/ngx_http_flv_live_module.so;

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,15 @@ For these operating systems, automatic builds of the latest release of module fo
8080
dnf install https://extras.getpagespeed.com/release-el$(rpm -E %{rhel})-latest.rpm
8181
sudo dnf --disablerepo=rhel-8-for-x86_64-appstream-rpms install nginx-module-flv
8282

83+
Now configuration files named `http-flv.conf` for HTTP-FLV feature and `rtmp.conf` for RTMP feature are located in `/etc/nginx/http-flv` directory, add them to `/etc/nginx/nginx.conf` manually via `include` to enable HTTP-FLV and RTMP features:
84+
85+
http {
86+
...
87+
include /etc/nginx/http-flv/http-flv.conf;
88+
}
89+
90+
include /etc/nginx/http-flv/rtmp.conf;
91+
8392
To enable this module, add the following to `/etc/nginx/nginx.conf` and reload NGINX:
8493

8594
load_module modules/ngx_http_flv_live_module.so;

0 commit comments

Comments
 (0)