Coturn[edit]

Install[edit]

dnf -y install coturn

MariaDB の設定[edit]

coturn 用のDBを作る.[edit]
# mariadb -u root -p
MariaDB [(none)]> create database coturn_db default character set utf8mb4;
MariaDB [(none)]> grant all on coturn_db.* to coturn_user identified by 'coturn_pass';
MariaDB [(none)]> flush privileges;
Table を作る[edit]
# mariadb coturn_db -u root -p < /usr/share/coturn/schema.sql
User アカウントを作る[edit]
# turnadmin -k -u webrtc_user -r janus.jogrid.net -p webrtc_pass
0xc8cb60c783b7c68533b9e15f1983f341

# mariadb -u root -p
MariaDB [coturn_db]> INSERT INTO turnusers_lt ( realm, name,hmackey) VALUES ('janus.jogrid.net', 'webrtc_use', '0xc8cb60c783b7c68533b9e15f1983f341');
Query OK, 1 row affected (0.000 sec)
MariaDB [coturn_db]> select *  from turnusers_lt;
+------------------+---------------+------------------------------------+
| realm            | name          | hmackey                            |
+------------------+---------------+------------------------------------+
| janus.jogrid.net | webrtc_user   | 0xc8cb60c783b7c68533b9e15f1983f341 |
+------------------+---------------+------------------------------------+
DB 確認[edit]
# turnadmin -l -u webrtc_user -r janus.jogrid.net -p webrtc_pass -M "host=localhost dbname=coturn_db user=coturn_USER password=coturn_PASS"

設定ファイル[edit]

 
 

トップ   新規 ページ一覧 検索 最終更新   ヘルプ   最終更新のRSS