nginx plex fix

This commit is contained in:
Danilo Reyes 2024-11-29 00:17:00 -06:00
parent 384d1f4dbb
commit 59495810ea

View File

@ -14,6 +14,7 @@ in
plex = lib.mkIf cfg.enable { plex = lib.mkIf cfg.enable {
enable = true; enable = true;
group = "piracy"; group = "piracy";
openFirewall = true;
}; };
nginx = lib.mkIf cfg.enableProxy { nginx = lib.mkIf cfg.enableProxy {
appendHttpConfig = '' appendHttpConfig = ''
@ -26,7 +27,7 @@ in
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
http2 = true; http2 = true;
serverAliases = [ "flix.rotehaare.art" ]; serverAliases = [ "plex.rotehaare.art" ];
extraConfig = '' extraConfig = ''
#Some players don't reopen a socket and playback stops totally instead of resuming after an extended pause #Some players don't reopen a socket and playback stops totally instead of resuming after an extended pause
send_timeout 100m; send_timeout 100m;