fix: piped
This commit is contained in:
@@ -18,8 +18,11 @@
|
||||
# Enable nginx reverse proxy with automatic TLS
|
||||
nginx.enable = true;
|
||||
|
||||
# Signature helper disabled - crashes with current YouTube player patterns
|
||||
# Re-enable once inv-sig-helper is updated to handle new YouTube obfuscation
|
||||
# Enable http3-ytproxy for video/image proxying
|
||||
# Handles /videoplayback, /vi/, /ggpht/, /sb/ paths
|
||||
http3-ytproxy.enable = true;
|
||||
|
||||
# Signature helper - crashes with current YouTube player format
|
||||
# sig-helper = {
|
||||
# enable = true;
|
||||
# };
|
||||
@@ -42,12 +45,46 @@
|
||||
# Optional: Instance customization
|
||||
default_home = "Popular";
|
||||
feed_menu = [ "Popular" "Trending" "Subscriptions" ];
|
||||
|
||||
# YouTube compatibility settings
|
||||
use_quic = true;
|
||||
force_resolve = "ipv4";
|
||||
};
|
||||
};
|
||||
|
||||
# Override nginx vhost configuration
|
||||
services.nginx.virtualHosts."invidious.cloonar.com" = {
|
||||
acmeRoot = null;
|
||||
|
||||
# Complete http3-ytproxy configuration with proper headers and buffering
|
||||
# This overrides the minimal config from the NixOS module
|
||||
locations."~ (^/videoplayback|^/vi/|^/ggpht/|^/sb/)" = {
|
||||
proxyPass = "http://unix:/run/http3-ytproxy/socket/http-proxy.sock";
|
||||
extraConfig = ''
|
||||
# Enable buffering for large video files
|
||||
proxy_buffering on;
|
||||
proxy_buffers 1024 16k;
|
||||
proxy_buffer_size 128k;
|
||||
proxy_busy_buffers_size 256k;
|
||||
|
||||
# Use HTTP/1.1 with keepalive for better performance
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Connection "";
|
||||
|
||||
# Hide headers that might cause issues
|
||||
proxy_hide_header Cache-Control;
|
||||
proxy_hide_header etag;
|
||||
proxy_hide_header "alt-svc";
|
||||
|
||||
# Optimize for large file transfers
|
||||
sendfile on;
|
||||
sendfile_max_chunk 512k;
|
||||
tcp_nopush on;
|
||||
|
||||
# Disable access logging for video traffic
|
||||
access_log off;
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
# Firewall configuration for Invidious
|
||||
|
||||
Reference in New Issue
Block a user