1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-21 18:06:36 +02:00
This commit is contained in:
kev 2022-08-04 12:16:52 +08:00
parent 6d29fe832d
commit 08ea679644
2 changed files with 11 additions and 5 deletions

View File

@ -1,3 +1,5 @@
#!/usr/bin/env node
const NodeMediaServer = require('node-media-server');
const config = {
@ -6,16 +8,17 @@ const config = {
chunk_size: 60000,
gop_cache: true,
ping: 30,
ping_timeout: 60
ping_timeout: 60,
},
http: {
port: 8000,
allow_origin: '*'
allow_origin: '*',
api: true,
},
auth: {
api : true,
api_user: 'admin',
api_pass: 'admin',
api: true,
api_user: process.env.USERNAME || 'admin',
api_pass: process.env.PASSWORD || 'admin',
},
};

View File

@ -5,4 +5,7 @@ services:
ports:
- "1935:1935"
- "8000:8000"
environment:
- USERNAME=admin
- PASSWORD=admin
restart: unless-stopped