RTMP Authentication | 0.17.2.0+
OvenMediaEngine Enterprise 0.17.2.0-1 버전부터 RTMP Authentication 기능을 지원합니다.
OvenMediaEngine Enterprise가 RTMP Provider를 통해 Media Source를 입력 받을 때 Username/Password Authentication을 사용 할 수 있습니다. 이를 통해 인증되지 않은 사용자의 무분별한 접근을 제한 할 수 있습니다.
RTMP Authentication 설정하기
Server.xml
의<VirtualHosts><VirtalHost><Applications><Application><Providers><RTMP>
내 <AuthFile>
을 지정하여 사용할 수 있습니다. 아래와 같이 설정하여 사용할 수 있습니다:
<?xml version="1.0" encoding="UTF-8"?>
<Server version="8">
...
<VirtualHosts>
<VirtualHost>
<Applications>
<Application>
<Providers>
...
<RTMP>
<AuthFile>AuthInfo.xml</AuthFile>
</LLHLS>
</Publishers>
</Application>
</Applications>
</VirtualHost>
</VirtualHosts>
</Server>
해당 AuthFile
은 <Application><Provider><RTMP>
에 설정하기 때문에 인증에 필요한 계정 목록을 Application
단위로 관리가 가능하여 사용이 편리합니다.
<AuthFile>
을 지정하지 않거나, AuthFile
로 참조될 .xml
파일 (AuthInfo.xml
)에 <Auth><Enabled>
가 false
로 설정되어 있다면, OvenMediaEngine Enterprise는 기존과 동일하게 인증을 진행하지 않고 RTMP 스트림을 수신합니다.
Auth Info 파일 구성하기
AuthInfo.xml
파일 규격은 <AuthInfo><Auth>
에 <ID>
, <Password>
, <Enabled>
가 있는 형태이며, 아래와 같이 구성하여 사용할 수 있습니다:
<AuthInfo>
<Auth>
<ID>username</ID>
<Password>password</Password>
<Enabled>true</Enabled>
</Auth>
</AuthInfo>
ID
: 인증을 진행할 사용자 ID를 지정합니다. 해당 부분은 OBS 기준Username
에 해당됩니다.Password
: 인증 시 필요한 사용자 Password를 지정합니다. 해당 부분은 OBS 기준Password
에 해당됩니다.Enabled
:<Enabled>
를false
로 설정하면, OvenMediaEngine Enterprise는 기존과 동일하게 인증을 진행하지 않고 RTMP 스트림을 수신합니다.
OBS에서 RTMP Authentication 사용하기
OBS를 이용하여 RTMP를 전송할 때, Use autentication
기능을 활성화하여 RTMP Autentication 기능을 사용할 수 있습니다:
위 가이드대로 AuthInfo.xml
파일을 만들어 OvenMediaEngine Enterprise에 <AuthFile>
을 지정했다면 AuthInfo.xml
파일에 기입한 <ID>
를 OBS의 Username에, <Password>
를 OBS의 Password에 기입한 후 Start Streaming을 진행하십시오. OvenMediaEngine Enterprise는 해당 인증 정보가 일치하는 경우, RTMP 미디어 소스를 수신할 것입니다.