mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2025-06-30 15:51:14 +02:00
NGINX and OvenMediaEngine configuration
This commit is contained in:
36
doc/nginx/modules-available/60-ghostream.conf
Normal file
36
doc/nginx/modules-available/60-ghostream.conf
Normal file
@ -0,0 +1,36 @@
|
||||
# This file is part of Ghostream
|
||||
# Copyright (C) 2020 by Crans <roots@crans.org>
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
# Reverse RTMPS to RTMP
|
||||
# As the user may put a password in his stream key, we only expose RTMPS.
|
||||
stream {
|
||||
server {
|
||||
listen 1935 ssl;
|
||||
listen [::]:1935 ssl;
|
||||
|
||||
# Send to NGINX RTMP server
|
||||
proxy_pass 127.0.0.1:1925;
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/stream.crans.org/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/stream.crans.org/privkey.pem;
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
}
|
||||
}
|
||||
|
||||
# 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 127.0.0.1:1925;
|
||||
|
||||
chunk_size 4096;
|
||||
application app {
|
||||
live on;
|
||||
record off;
|
||||
push rtmp://127.0.0.1:1915;
|
||||
on_publish http://127.0.0.1:5000/;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user