From 0dfd4fd4a6e0b4c651e6cad68abc2c9b8eefb4a4 Mon Sep 17 00:00:00 2001 From: Arya Kiran Date: Mon, 13 Nov 2023 17:31:32 +0530 Subject: [PATCH] invidious playack CORS --- 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 d7479df..ea259e9 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 + @playback { + path /videoplayback + path /videoplayback/* + } + header @playback { + Access-Control-Allow-Origin "*" + } @jpgRedirect path_regexp maxres2 /vi/(.+)/maxres.jpg @thumbnailRedirect path_regexp ggpht /ggpht/(.+) redir @jpgRedirect /vi/{re.maxres2.1}/maxres2.jpg diff --git a/privfrontends/templates/eu/misc.Caddyfile b/privfrontends/templates/eu/misc.Caddyfile index 01796c1..6d4a840 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 + @playback { + path /videoplayback + path /videoplayback/* + } + header @playback { + Access-Control-Allow-Origin "*" + } @jpgRedirect path_regexp maxres2 /vi/(.+)/maxres.jpg @thumbnailRedirect path_regexp ggpht /ggpht/(.+) redir @jpgRedirect /vi/{re.maxres2.1}/maxres2.jpg