1
0
Fork 0

mediaserver: update settings

This commit is contained in:
Daniel Kempkens 2024-02-24 18:19:37 +01:00
parent 3d5fb42578
commit 1429fbbb45
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
2 changed files with 51 additions and 30 deletions

View file

@ -1,7 +1,27 @@
{ lib, config, ... }: { pkgs, lib, config, ... }:
{ {
services.nginx.virtualHosts."default.internal.kempkens.network" = { services.nginx = {
additionalModules = with pkgs.nginxModules; [
vod
];
appendHttpConfig = ''
aio on;
vod_mode local;
vod_metadata_cache metadata_cache 16m;
vod_response_cache response_cache 512m;
vod_last_modified_types *;
vod_segment_duration 9000;
vod_align_segments_to_key_frames on;
vod_dash_fragment_file_name_prefix "segment";
vod_hls_segment_file_name_prefix "segment";
vod_manifest_segment_durations_mode accurate;
'';
virtualHosts."default.internal.kempkens.network" = {
listen = [ listen = [
{ {
addr = "0.0.0.0"; addr = "0.0.0.0";
@ -36,6 +56,7 @@
return = "418"; return = "418";
}; };
}; };
};
networking.firewall.interfaces = networking.firewall.interfaces =
let let