mirror of
https://github.com/vimagick/dockerfiles
synced 2024-06-16 11:58:47 +00:00
update
This commit is contained in:
parent
6d29fe832d
commit
08ea679644
@ -1,3 +1,5 @@
|
|||||||
|
#!/usr/bin/env node
|
||||||
|
|
||||||
const NodeMediaServer = require('node-media-server');
|
const NodeMediaServer = require('node-media-server');
|
||||||
|
|
||||||
const config = {
|
const config = {
|
||||||
@ -6,16 +8,17 @@ const config = {
|
|||||||
chunk_size: 60000,
|
chunk_size: 60000,
|
||||||
gop_cache: true,
|
gop_cache: true,
|
||||||
ping: 30,
|
ping: 30,
|
||||||
ping_timeout: 60
|
ping_timeout: 60,
|
||||||
},
|
},
|
||||||
http: {
|
http: {
|
||||||
port: 8000,
|
port: 8000,
|
||||||
allow_origin: '*'
|
allow_origin: '*',
|
||||||
|
api: true,
|
||||||
},
|
},
|
||||||
auth: {
|
auth: {
|
||||||
api: true,
|
api: true,
|
||||||
api_user: 'admin',
|
api_user: process.env.USERNAME || 'admin',
|
||||||
api_pass: 'admin',
|
api_pass: process.env.PASSWORD || 'admin',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -5,4 +5,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "1935:1935"
|
- "1935:1935"
|
||||||
- "8000:8000"
|
- "8000:8000"
|
||||||
|
environment:
|
||||||
|
- USERNAME=admin
|
||||||
|
- PASSWORD=admin
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
Loading…
Reference in New Issue
Block a user