From 1429fbbb45207d048d8574d2cf2c504d7d582d79 Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Sat, 24 Feb 2024 18:19:37 +0100 Subject: [PATCH] mediaserver: update settings --- secret/container/additional-media/default.nix | Bin 5743 -> 8756 bytes system/nixos/nginx-mediaserver.nix | 81 +++++++++++------- 2 files changed, 51 insertions(+), 30 deletions(-) diff --git a/secret/container/additional-media/default.nix b/secret/container/additional-media/default.nix index 61efb6e8202b6a02be5c6d1e13d258a96face442..d6fc445826c0689d1b345f165cff47c0542d95a5 100644 GIT binary patch literal 8756 zcmV-4BFo(XM@dveQdv+`0Oz&Tz@#T4l9E+czc|V`9}PoGhT93;{-oV)Ps0fye)&bt z61i7P`^4PkhL4v}ab;H1(0#5TXF#EDE{s9#(?Sn4_}#3}wiHP>Nm*`yhzyWi8$f?}oiDmXljBsx-7?%i4UiFQoo6MOZO z11TgGMNoL7Z#QsG`r?Uhq$p0`B;|oE8B&tc^q0R`M!Mzg`J~@l!Ui=2uOKL=Dj+7THH|1A&6DSANGGg{t*$-;7n&E zVwJqE?Pu*Zaj+6oljthW-e3daJa;%FH++1g%y)X5fbN*0@?$|}&!d`y`@wPCbCZTU zDO3o*h@n)w{0kH7QkRw8C%)W?j(N?x!5{s+Yl2Ei>`du%VER_mX8yDJiUiko01Qzq zS;ojpc}#XBgKsfaQQX_}-o&+WpPtDHHNnG$EGyV42Q!V~bi(8_j_&_m1J$#-4QSq>9s%Wd5IpAqT(cyL8vD5K zqPPnnGi<{)UYQ!+$OSls8PklG0$TN8WU)FoPbiaGC0i~5*KQ5}h-AyPoiy6J_}e*z z__$}L(za-G6NBj97P4&Q(N%J$x@`N+#YuqLr^hfCs)H1pf)FCx*DR)V%GMX%#4Yb- zJp+mcHFa{>e8ryz;sNjC?+Nw%gki%@*Xt!O3{+fqvruc?s?jT)dC7X(6BIN}+6eLG zen?>c!GfP=rwn=&ahB{lk#`PRt18a?7*j=Tzu$ETueG{E&JJ2zqK?Fk8G$bNQE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Ob;OW{GlTOg-+wXSJ|N9zHbF-?8e9c_$4u+I-z*w@g!(#WK z@VC*hKZU;7(ByWVMy-7J#tT5YVz!A9iS;Nt{L3*TLmG9{x`svr&Su1XVC^uZ%m_hw z6qJb0^5;GhCxkk|p+f6%m}4ej_$`gGXiFr3&?2@&}=m$|NXZ0dnk;jt_R<7w-rt6<> z@!NSge&dyI>z*F6jTdxQS@7_W>6#X^m(H$=bvQ&yt?yhY#WQ-s%8wKzQ=(mqihf+Z zFu!I%ohO-xznQ%yHeh40{^j}s6tx7^HZ=MCEtMP*_a9u|XLGmPs+pO?sCmRi^sT%2@9*=fs;cNBlYLzJC`$-D8+g7DBLs$iB`G_kzOHV?9JJ?b&5Gg|yw!;e z8$~fSqyn7L6@9FTHX^6K_|2OVSu=?j%1I1FJ!rsLOX9@x2&lGU-@Y=6&MoKBl@@gN zSCK3{tx^j5m+=V`3@u&9an%^klC3i-+kUI@bKtDSz(|D}7*11Y6|U;!jHE?d1tQi0X(s%~W zA5IiesR4W4yIbsX(km5}NPa8ki^l>AhK1l8zClTDOvu6C`sFB^Tbt8qr~-DwKTeXV(#z z$^%O%g_4tsH=d}yLu};sZoX3)>j@apjT)92KFj&ojucrcpi3v2E&=dbe6!mH^K@%pi`8Up&8OrV zj!y%ZQ&DYFHq=~Al$T1$Vbe#_i>zmK>JVGLLb;?*&vN% h0UPDYuT|C}mx;ZVC@+W&uC2EwE8$fe<&CLKJvLGlCB6Uv diff --git a/system/nixos/nginx-mediaserver.nix b/system/nixos/nginx-mediaserver.nix index 73c67e6..f4a7784 100644 --- a/system/nixos/nginx-mediaserver.nix +++ b/system/nixos/nginx-mediaserver.nix @@ -1,39 +1,60 @@ -{ lib, config, ... }: +{ pkgs, lib, config, ... }: { - services.nginx.virtualHosts."default.internal.kempkens.network" = { - listen = [ - { - addr = "0.0.0.0"; - port = 443; - ssl = true; - extraParameters = [ - "fastopen=63" - "backlog=1023" - "deferred" - ]; - } - - { - addr = "[::0]"; - port = 443; - ssl = true; - extraParameters = [ - "fastopen=63" - "backlog=1023" - "deferred" - ]; - } + services.nginx = { + additionalModules = with pkgs.nginxModules; [ + vod ]; - default = true; - quic = false; + appendHttpConfig = '' + aio on; - onlySSL = true; - useACMEHost = "internal.kempkens.network"; + 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"; - locations."/" = { - return = "418"; + vod_manifest_segment_durations_mode accurate; + ''; + + virtualHosts."default.internal.kempkens.network" = { + listen = [ + { + addr = "0.0.0.0"; + port = 443; + ssl = true; + extraParameters = [ + "fastopen=63" + "backlog=1023" + "deferred" + ]; + } + + { + addr = "[::0]"; + port = 443; + ssl = true; + extraParameters = [ + "fastopen=63" + "backlog=1023" + "deferred" + ]; + } + ]; + + default = true; + quic = false; + + onlySSL = true; + useACMEHost = "internal.kempkens.network"; + + locations."/" = { + return = "418"; + }; }; };