@alloy-framework/webrtc 0.1.6 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config.manager.yaml +32 -0
- package/config.worker.yaml +34 -0
- package/package.json +7 -7
- package/env.manager.example +0 -35
- package/env.worker.example +0 -34
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# ─────────────────────────────────────────────
|
|
2
|
+
# Alloy WebRTC Manager Configuration
|
|
3
|
+
# ─────────────────────────────────────────────
|
|
4
|
+
# Environment variables override YAML values.
|
|
5
|
+
# Example: TOKEN_SECRET=xxx ./alloy-manager
|
|
6
|
+
|
|
7
|
+
server:
|
|
8
|
+
host: "0.0.0.0"
|
|
9
|
+
api_port: 9002
|
|
10
|
+
tcp_port: 9001
|
|
11
|
+
|
|
12
|
+
database:
|
|
13
|
+
# url: "mongodb://user:pass@host:port/db" # Direct URL (takes priority)
|
|
14
|
+
host: "localhost"
|
|
15
|
+
port: 27017
|
|
16
|
+
user: ""
|
|
17
|
+
password: ""
|
|
18
|
+
name: "alloy"
|
|
19
|
+
|
|
20
|
+
redis:
|
|
21
|
+
session_url: "redis://localhost:6379"
|
|
22
|
+
session_prefix: "alloy_starter_sess:"
|
|
23
|
+
session_cookie_name: "alloy_starter_sess"
|
|
24
|
+
|
|
25
|
+
nats:
|
|
26
|
+
url: "nats://localhost:4222"
|
|
27
|
+
prefix: "alloy.stream"
|
|
28
|
+
|
|
29
|
+
token:
|
|
30
|
+
auth: true
|
|
31
|
+
secret: "my-32-byte-secret-key-here!!!!!"
|
|
32
|
+
expiry: 3600
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# ─────────────────────────────────────────────
|
|
2
|
+
# Alloy WebRTC Worker Configuration
|
|
3
|
+
# ─────────────────────────────────────────────
|
|
4
|
+
# Environment variables override YAML values.
|
|
5
|
+
# Example: WORKER_IP=192.168.1.100 ./alloy-worker
|
|
6
|
+
|
|
7
|
+
server:
|
|
8
|
+
host: "0.0.0.0"
|
|
9
|
+
|
|
10
|
+
manager:
|
|
11
|
+
host: "127.0.0.1"
|
|
12
|
+
port: 9001
|
|
13
|
+
|
|
14
|
+
worker:
|
|
15
|
+
ip: "127.0.0.1"
|
|
16
|
+
ingest_port: 7001
|
|
17
|
+
webrtc_port: 50002
|
|
18
|
+
whip_port: 7777
|
|
19
|
+
max_sessions: 100
|
|
20
|
+
|
|
21
|
+
webrtc:
|
|
22
|
+
stun_server: "stun:stun.l.google.com:19302"
|
|
23
|
+
|
|
24
|
+
nats:
|
|
25
|
+
host: "localhost"
|
|
26
|
+
port: 4222
|
|
27
|
+
user: ""
|
|
28
|
+
password: ""
|
|
29
|
+
prefix: "alloy"
|
|
30
|
+
|
|
31
|
+
token:
|
|
32
|
+
auth: true
|
|
33
|
+
secret: "my-32-byte-secret-key-here!!!!!"
|
|
34
|
+
expiry: 3600
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alloy-framework/webrtc",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Alloy WebRTC SFU — alloy-manager (Control Plane) + alloy-worker (Media Plane)
|
|
3
|
+
"version": "0.1.8",
|
|
4
|
+
"description": "Alloy WebRTC SFU — alloy-manager (Control Plane) + alloy-worker (Media Plane) binary loader",
|
|
5
5
|
"bin": {
|
|
6
6
|
"alloy-manager": "./run-manager.js",
|
|
7
7
|
"alloy-worker": "./run-worker.js"
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
"files": [
|
|
10
10
|
"run-manager.js",
|
|
11
11
|
"run-worker.js",
|
|
12
|
-
"
|
|
13
|
-
"
|
|
12
|
+
"config.manager.yaml",
|
|
13
|
+
"config.worker.yaml"
|
|
14
14
|
],
|
|
15
15
|
"optionalDependencies": {
|
|
16
|
-
"@alloy-framework/webrtc-darwin-arm64": "0.1.
|
|
17
|
-
"@alloy-framework/webrtc-linux-x64-gnu": "0.1.
|
|
18
|
-
"@alloy-framework/webrtc-win32-x64-msvc": "0.1.
|
|
16
|
+
"@alloy-framework/webrtc-darwin-arm64": "0.1.8",
|
|
17
|
+
"@alloy-framework/webrtc-linux-x64-gnu": "0.1.8",
|
|
18
|
+
"@alloy-framework/webrtc-win32-x64-msvc": "0.1.8"
|
|
19
19
|
},
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"repository": {
|
package/env.manager.example
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# ─────────────────────────────────────────────
|
|
2
|
-
# 🎨 Alloy WebRTC Manager — 환경 설정 파일
|
|
3
|
-
# 이 파일을 .env로 복사하여 사용하세요:
|
|
4
|
-
# cp env.manager.example .env
|
|
5
|
-
# ─────────────────────────────────────────────
|
|
6
|
-
|
|
7
|
-
APP_NAMESPACE=webrtc-manager
|
|
8
|
-
HOST=0.0.0.0
|
|
9
|
-
PORT=9002
|
|
10
|
-
TCP_PORT=9001
|
|
11
|
-
|
|
12
|
-
# ─── MongoDB (MAIN) ───
|
|
13
|
-
DB_MAIN_TYPE=mongo
|
|
14
|
-
DB_MAIN_HOST=localhost
|
|
15
|
-
DB_MAIN_PORT=27017
|
|
16
|
-
DB_MAIN_USER=
|
|
17
|
-
DB_MAIN_PASSWORD=
|
|
18
|
-
DB_MAIN_DATABASE=alloy
|
|
19
|
-
DB_MAIN_LOGGING=true
|
|
20
|
-
# 또는 직접 URL 지정:
|
|
21
|
-
# DB_MAIN_URL=mongodb://user:pass@host:port/database
|
|
22
|
-
|
|
23
|
-
# ─── Redis (세션 공유) ───
|
|
24
|
-
REDIS_SESSION_URL=redis://:your_password@localhost:6379
|
|
25
|
-
SESSION_PREFIX=alloy_starter_sess:
|
|
26
|
-
SESSION_COOKIE_NAME=alloy_starter_sess
|
|
27
|
-
|
|
28
|
-
# ─── NATS (스트림 이벤트) ───
|
|
29
|
-
NATS_URL=nats://localhost:4222
|
|
30
|
-
NATS_PREFIX=alloy.stream
|
|
31
|
-
|
|
32
|
-
# ─── WebRTC 토큰 인증 ───
|
|
33
|
-
WEBRTC_TOKEN_AUTH=true
|
|
34
|
-
WEBRTC_TOKEN_SECRET=your-32-byte-secret-key-here!!!!!
|
|
35
|
-
WEBRTC_TOKEN_EXPIRY=3600
|
package/env.worker.example
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# ─────────────────────────────────────────────
|
|
2
|
-
# 👷 Alloy WebRTC Worker — 환경 설정 파일
|
|
3
|
-
# 이 파일을 .env로 복사하여 사용하세요:
|
|
4
|
-
# cp env.worker.example .env
|
|
5
|
-
# ─────────────────────────────────────────────
|
|
6
|
-
|
|
7
|
-
APP_NAMESPACE=WEBRTC_WORKER
|
|
8
|
-
RUST_LOG=info
|
|
9
|
-
|
|
10
|
-
# ─── Manager 연결 ───
|
|
11
|
-
MANAGER_HOST=127.0.0.1
|
|
12
|
-
MANAGER_PORT=9001
|
|
13
|
-
|
|
14
|
-
# ─── Worker 포트 설정 ───
|
|
15
|
-
WORKER_INGEST_PORT=7001
|
|
16
|
-
WORKER_WEBRTC_PORT=50002
|
|
17
|
-
WORKER_IP=127.0.0.1
|
|
18
|
-
WORKER_WHIP_PORT=7777
|
|
19
|
-
|
|
20
|
-
# ─── WebRTC ───
|
|
21
|
-
STUN_SERVER=stun:stun.l.google.com:19302
|
|
22
|
-
MAX_SESSIONS=100
|
|
23
|
-
|
|
24
|
-
# ─── NATS ───
|
|
25
|
-
NATS_HOST=localhost
|
|
26
|
-
NATS_PORT=4222
|
|
27
|
-
NATS_USER=admin
|
|
28
|
-
NATS_PASSWORD=your_nats_password
|
|
29
|
-
NATS_PREFIX=alloy
|
|
30
|
-
|
|
31
|
-
# ─── WebRTC 토큰 인증 ───
|
|
32
|
-
WEBRTC_TOKEN_AUTH=true
|
|
33
|
-
WEBRTC_TOKEN_SECRET=your-32-byte-secret-key-here!!!!!
|
|
34
|
-
WEBRTC_TOKEN_EXPIRY=3600
|