Proxy fix for media srv
All checks were successful
Deploy NixOS / deploy (push) Successful in 20s

This commit is contained in:
2026-02-14 20:30:36 -07:00
parent ff0c7c8b6f
commit 38620aba96

View File

@@ -245,40 +245,18 @@ in
enableACME = true;
forceSSL = true;
extraConfig = ''
# No file size limits for Jellyfin
client_max_body_size 0;
# Disable buffering for streaming
proxy_buffering off;
proxy_request_buffering off;
'';
locations."/" = {
proxyPass = "http://lloyd.tadpole-pain.ts.net:30013";
proxyWebsockets = true;
extraConfig = ''
if ($fuckai) { return 444; }
# Disable transfer limits and timeouts for large media
proxy_buffering off;
proxy_request_buffering off;
proxy_read_timeout 86400s;
proxy_send_timeout 86400s;
send_timeout 86400s;
client_max_body_size 0;
# Disable buffering for real-time streaming
proxy_buffering off;
proxy_request_buffering off;
proxy_http_version 1.1;
# Proper headers for streaming
proxy_set_header Range $http_range;
proxy_set_header If-Range $http_if_range;
'';
};
locations."/socket" = {
proxyPass = "http://lloyd.tadpole-pain.ts.net:30013";
proxyWebsockets = true;
extraConfig = ''
if ($fuckai) { return 444; }
'';
};
};