mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
hosts/samhain: RTMP setup
This commit is contained in:
parent
497ee9eceb
commit
ee718f309a
1 changed files with 15 additions and 1 deletions
|
|
@ -93,8 +93,21 @@ in {
|
|||
networking.interfaces.enp34s0.useDHCP = true;
|
||||
networking.firewall.allowPing = true;
|
||||
|
||||
services.nginx.appendConfig = ''
|
||||
rtmp {
|
||||
server {
|
||||
listen [::]:1935 ipv6only=off;
|
||||
application kattv {
|
||||
live on;
|
||||
|
||||
allow publish all;
|
||||
allow play all;
|
||||
}
|
||||
}
|
||||
}
|
||||
'';
|
||||
|
||||
networking.firewall.interfaces.enp34s0.allowedTCPPorts = [
|
||||
1935 # rtmp
|
||||
80 # http
|
||||
443 # https
|
||||
];
|
||||
|
|
@ -106,6 +119,7 @@ in {
|
|||
443 # https
|
||||
111 # nfs
|
||||
2049 # nfs
|
||||
1935 # rtmp
|
||||
];
|
||||
|
||||
networking.firewall.interfaces.enp34s0.allowedUDPPorts = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue