mediaserver: update settings
This commit is contained in:
parent
3d5fb42578
commit
1429fbbb45
2 changed files with 51 additions and 30 deletions
Binary file not shown.
|
@ -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 = [
|
||||
{
|
||||
addr = "0.0.0.0";
|
||||
|
@ -36,6 +56,7 @@
|
|||
return = "418";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.interfaces =
|
||||
let
|
||||
|
|
Loading…
Reference in a new issue