mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
24 lines
365 B
JavaScript
24 lines
365 B
JavaScript
|
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();
|