mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-24 06:28:23 +01:00
add node-media-server-arm
This commit is contained in:
23
node-media-server/arm/app.js
Normal file
23
node-media-server/arm/app.js
Normal file
@@ -0,0 +1,23 @@
|
||||
const NodeMediaServer = require('node-media-server');
|
||||
|
||||
const config = {
|
||||
rtmp: {
|
||||
port: 1935,
|
||||
chunk_size: 60000,
|
||||
gop_cache: true,
|
||||
ping: 30,
|
||||
ping_timeout: 60
|
||||
},
|
||||
http: {
|
||||
port: 8000,
|
||||
allow_origin: '*'
|
||||
},
|
||||
auth: {
|
||||
api : true,
|
||||
api_user: 'admin',
|
||||
api_pass: 'admin',
|
||||
},
|
||||
};
|
||||
|
||||
var nms = new NodeMediaServer(config)
|
||||
nms.run();
|
||||
Reference in New Issue
Block a user