This commit is contained in:
@@ -245,40 +245,18 @@ in
|
|||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
# No file size limits for Jellyfin
|
|
||||||
client_max_body_size 0;
|
client_max_body_size 0;
|
||||||
|
|
||||||
# Disable buffering for streaming
|
|
||||||
proxy_buffering off;
|
|
||||||
proxy_request_buffering off;
|
|
||||||
'';
|
'';
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://lloyd.tadpole-pain.ts.net:30013";
|
proxyPass = "http://lloyd.tadpole-pain.ts.net:30013";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
if ($fuckai) { return 444; }
|
if ($fuckai) { return 444; }
|
||||||
|
proxy_buffering off;
|
||||||
# Disable transfer limits and timeouts for large media
|
proxy_request_buffering off;
|
||||||
proxy_read_timeout 86400s;
|
proxy_read_timeout 86400s;
|
||||||
proxy_send_timeout 86400s;
|
proxy_send_timeout 86400s;
|
||||||
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; }
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user