ユーザ用ツール

サイト用ツール


サイドバー

最新の10件
一覧
webapp:icecast2

設定

認証

Icecast2の設定ファイル( /etc/icecast2/icecast.xml )修正

$ sudo git -C /etc diff /etc/icecast2/icecast.xml
diff --git a/icecast2/icecast.xml b/icecast2/icecast.xml
index facfced..27c595d 100644
--- a/icecast2/icecast.xml
+++ b/icecast2/icecast.xml
@@ -186,6 +186,13 @@
         </authentication>
     </mount>
     -->
+    <mount>
+           <mount-name>/youtubelive</mount-name>
+           <authentication type="htpasswd">
+                   <option name="filename" value="/etc/icecast2/auth/youtubelive"/>
+                   <option name="allow_duplicate_users" value="1"/>
+            </authentication>
+    </mount>
 
     <fileserve>1</fileserve>
 
  • mount-name に書いたmountが対象
  • filename はフルパスで指定
  • allow_duplicate_users0 だと1ユーザ1接続.1 だと1ユーザ複数接続
    • 1つのIDで使いまわしたい場合は 1 にする

パスワード格納ディレクトリ,ファイル作成

$ sudo install -o icecast2 -g icecast -m 750 -d /etc/icecast2/auth
$ sudo install -o icecast2 -g icecast -m 640 /dev/null /etc/icecast2/auth/youtubelive

ユーザ登録

  • Icecast2のWeb( http://icecast.example.com:8000/ )にAdmin でlogin
  • Mountpoint List で該当mountの「Manage Authentication」→「Add new user」で登録

視聴

basic authなのでこんな感じでも聞ける

http://user:pass@icecast.example.org:8000/youtubelive

URL

コメント

コメントを入力. Wiki文法が有効です:
   ___    __  __  __   __ __  _____
  / _ \  / /  \ \/ /  / //_/ / ___/
 / ___/ / /__  \  /  / ,<   / /__  
/_/    /____/  /_/  /_/|_|  \___/
 
webapp/icecast2.txt · 最終更新: 2021/02/21 04:59 by matoken