change rtmp ports
This commit is contained in:
parent
407318445d
commit
0d5d8500df
4 changed files with 12 additions and 9 deletions
|
@ -4,12 +4,12 @@ OBS
|
|||
publish
|
||||
-------
|
||||
|
||||
obs stream to `rtmps://rtmp.sublimity.de:1937/24b626n246n2462v46bb2n2` stream key `ckn`
|
||||
obs stream to `rtmps://rtmp.sublimity.de:1936/24b626n246n2462v46bb2n2` stream key `ckn`
|
||||
|
||||
input
|
||||
-----
|
||||
|
||||
- Media Source
|
||||
- uncheck Local File
|
||||
- Input: `rtmps://rtmp.sublimity.de:1937/24b626n246n2462v46bb2n2/ckn`
|
||||
- Input: `rtmps://rtmp.sublimity.de:1936/24b626n246n2462v46bb2n2/ckn`
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
stream {
|
||||
upstream rtmp {
|
||||
server 127.0.0.1:1936;
|
||||
server 127.0.0.1:1935;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 1937 ssl;
|
||||
listen [::]:1937 ssl;
|
||||
listen 1936 ssl;
|
||||
listen [::]:1936 ssl;
|
||||
|
||||
ssl_certificate /var/lib/dehydrated/certs/${server_name}/fullchain.pem;
|
||||
ssl_certificate_key /var/lib/dehydrated/certs/${server_name}/privkey.pem;
|
||||
|
@ -16,7 +16,7 @@ stream {
|
|||
|
||||
rtmp {
|
||||
server {
|
||||
listen 127.0.0.1:1936;
|
||||
listen 127.0.0.1:1935;
|
||||
chunk_size 4096;
|
||||
|
||||
application ${stream_key} {
|
||||
|
@ -32,7 +32,7 @@ rtmp {
|
|||
deny publish all; # no need to publish on /live
|
||||
allow play all; # playing allowed
|
||||
|
||||
pull rtmp://127.0.0.1:1936/${stream_key};
|
||||
pull rtmp://127.0.0.1:1935/${stream_key};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,6 +4,9 @@ files = {
|
|||
'context': {
|
||||
'server_name': node.metadata.get('nginx-rtmps/hostname'),
|
||||
'stream_key': node.metadata.get('nginx-rtmps/stream_key'),
|
||||
}
|
||||
},
|
||||
'triggers': [
|
||||
'svc_systemd:nginx:restart',
|
||||
],
|
||||
},
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ defaults = {
|
|||
},
|
||||
'nftables': {
|
||||
'input': {
|
||||
'tcp dport 1937 accept',
|
||||
'tcp dport 1936 accept',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue