invidious playack CORS

This commit is contained in:
Arya 2023-11-13 17:31:32 +05:30
parent 2ca96e912b
commit 0dfd4fd4a6
Signed by: arya
GPG Key ID: 842D12BDA50DF120
2 changed files with 14 additions and 0 deletions

View File

@ -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

View File

@ -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