nginx rtmp livestreaming

This commit is contained in:
zuckerberg
2021-05-16 18:13:21 -04:00
parent 65b069c174
commit e5127d14d9
4 changed files with 83 additions and 2 deletions

View File

@@ -1,7 +1,9 @@
{ lib, config, pkgs, ... }:
let
cfg = config.services.nginx;
{
config = lib.mkIf config.services.nginx.enable {
config = lib.mkIf cfg.enable {
services.nginx = {
recommendedGzipSettings = true;
recommendedOptimisation = true;
@@ -10,6 +12,5 @@
};
networking.firewall.allowedTCPPorts = [ 80 443 ];
networking.firewall.allowedUDPPorts = [ 80 443 ];
};
}