1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2025-06-30 02:01:08 +02:00

Use traefik in docker-compose example

This commit is contained in:
Alexandre Iooss
2020-09-15 09:26:44 +02:00
parent 43a3a85e7a
commit bfb542e8d0
5 changed files with 128 additions and 10 deletions

View File

@ -30,7 +30,7 @@ rtmp {
live on;
record off;
push rtmp://127.0.0.1:1915;
on_publish http://127.0.0.1:8080/app/auth;
on_publish http://127.0.0.1:8080/rtmp/auth;
}
}
}

View File

@ -0,0 +1,28 @@
# This file is part of Ghostream
# Copyright (C) 2020 by Crans <roots@crans.org>
# SPDX-License-Identifier: GPL-2.0-or-later
user www-data;
worker_processes auto;
pid /run/nginx.pid;
events {
worker_connections 768;
}
# Authenticate then stream RTMP
# This RTMP server will be used when clients play directly RTMPS.
# It also push RTMP stream to OvenMediaEngine to generate WebRTC stream.
rtmp {
server {
listen 0.0.0.0:1925;
chunk_size 4096;
application app {
live on;
record off;
push rtmp://ovenmediaengine:1915;
on_publish http://ghostream:8080/rtmp/auth;
}
}
}