Repo init

This commit is contained in:
2026-04-23 23:40:34 -03:00
parent 214158a174
commit 30b0597380
34 changed files with 13201 additions and 2 deletions
+24
View File
@@ -0,0 +1,24 @@
logLevel: debug
logDestinations: [stdout]
# RTMP — ffmpeg publica aqui
rtmp: yes
rtmpAddress: :1935
# HLS — frontend e player consomem daqui
hls: yes
hlsAddress: :8888
hlsAlwaysRemux: no
hlsVariant: lowLatency
hlsSegmentCount: 7
hlsSegmentDuration: 1s
hlsPartDuration: 200ms
# Desabilita o que não usa
rtsp: no
webrtc: no
srt: no
paths:
all:
source: publisher
+40
View File
@@ -0,0 +1,40 @@
[supervisord]
nodaemon=true
logfile=/app/data/logs/supervisord.log
logfile_maxbytes=10MB
logfile_backups=3
pidfile=/tmp/supervisord.pid
[unix_http_server]
file=/tmp/supervisor.sock
[supervisorctl]
serverurl=unix:///tmp/supervisor.sock
[rpcinterface:supervisor]
supervisor.rpcinterface_factory=supervisor.rpcinterface:make_main_rpcinterface
# ── Serviços base ────────────────────────────────────────────────────────────
[program:mediamtx]
command=/usr/local/bin/mediamtx /etc/mediamtx.yml
autorestart=true
priority=1
stdout_logfile=/app/data/logs/mediamtx.log
stderr_logfile=/app/data/logs/mediamtx.log
[program:nextjs]
directory=/app
command=node server.js
environment=PORT=3000,HOSTNAME=0.0.0.0,DATA_DIR=/app/data
autorestart=true
priority=2
stdout_logfile=/app/data/logs/nextjs.log
stderr_logfile=/app/data/logs/nextjs.log
# ── Streams dinâmicas ────────────────────────────────────────────────────────
# Cada stream gera /app/data/streams/{id}/stream.conf
# O supervisord inclui todos automaticamente
[include]
files = /app/data/streams/*/stream.conf