From 2ca96e912b95e31ead1da583c2146d63d43892cf Mon Sep 17 00:00:00 2001 From: Arya Kiran Date: Mon, 13 Nov 2023 16:54:12 +0530 Subject: [PATCH] use pipedproxy for invidious --- privfrontends/templates/Caddyfile.j2 | 7 +++++++ privfrontends/templates/eu/misc.Caddyfile | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/privfrontends/templates/Caddyfile.j2 b/privfrontends/templates/Caddyfile.j2 index 006acd5..d7479df 100644 --- a/privfrontends/templates/Caddyfile.j2 +++ b/privfrontends/templates/Caddyfile.j2 @@ -106,6 +106,13 @@ teddit.{{ server_prefix }}.projectsegfau.lt teddit.projectsegfau.lt t.psf.lt t.{ } inv.{{ server_prefix }}.projectsegfau.lt i.{{ server_prefix }}.psf.lt { reverse_proxy :7573 + @jpgRedirect path_regexp maxres2 /vi/(.+)/maxres.jpg + @thumbnailRedirect path_regexp ggpht /ggpht/(.+) + redir @jpgRedirect /vi/{re.maxres2.1}/maxres2.jpg + redir @thumbnailRedirect https://pipedproxy.{{server_prefix}}.projectsegfau.lt/{re.ggpht.1}?host=yt3.ggpht.com + redir /vi/* https://pipedproxy.{{server_prefix}}.projectsegfau.lt{uri}?host=i.ytimg.com + redir /videoplayback/* https://pipedproxy.{{server_prefix}}.projectsegfau.lt{uri} + redir /videoplayback https://pipedproxy.{{server_prefix}}.projectsegfau.lt{uri} header { # disable FLoC tracking Permissions-Policy "accelerometer=(), ambient-light-sensor=(), autoplay=(), battery=(), camera=(), clipboard-read=(), display-capture=(), document-domain=(), encrypted-media=(), fullscreen=(), geolocation=(), gyroscope=(), hid=(), idle-detection=(), interest-cohort=(), magnetometer=(), microphone=(), midi=(), payment=(), picture-in-picture=(), screen-wake-lock=(), serial=(), usb=(), sync-xhr=(), xr-spatial-tracking=()"; diff --git a/privfrontends/templates/eu/misc.Caddyfile b/privfrontends/templates/eu/misc.Caddyfile index 3c5e62f..01796c1 100644 --- a/privfrontends/templates/eu/misc.Caddyfile +++ b/privfrontends/templates/eu/misc.Caddyfile @@ -4,6 +4,13 @@ sl.projectsegfau.lt sl.psf.lt { } inv.bp.projectsegfau.lt, i.bp.psf.lt, invidious.projectsegfau.lt, inv.projectsegfau.lt, i.psf.lt { reverse_proxy localhost:7573 + @jpgRedirect path_regexp maxres2 /vi/(.+)/maxres.jpg + @thumbnailRedirect path_regexp ggpht /ggpht/(.+) + redir @jpgRedirect /vi/{re.maxres2.1}/maxres2.jpg + redir @thumbnailRedirect https://proxy.piped.projectsegfau.lt/{re.ggpht.1}?host=yt3.ggpht.com + redir /vi/* https://proxy.piped.projectsegfau.lt{uri}?host=i.ytimg.com + redir /videoplayback/* https://proxy.piped.projectsegfau.lt{uri} + redir /videoplayback https://proxy.piped.projectsegfau.lt{uri} header { # disable FLoC tracking Permissions-Policy "accelerometer=(), ambient-light-sensor=(), autoplay=(), battery=(), camera=(), clipboard-read=(), display-capture=(), document-domain=(), encrypted-media=(), fullscreen=(), geolocation=(), gyroscope=(), hid=(), idle-detection=(), interest-cohort=(), magnetometer=(), microphone=(), midi=(), payment=(), picture-in-picture=(), screen-wake-lock=(), serial=(), usb=(), sync-xhr=(), xr-spatial-tracking=()";