improved pipedproxy for inv
This commit is contained in:
parent
0dfd4fd4a6
commit
b261aa00a5
@ -106,20 +106,23 @@ teddit.{{ server_prefix }}.projectsegfau.lt teddit.projectsegfau.lt t.psf.lt t.{
|
|||||||
}
|
}
|
||||||
inv.{{ server_prefix }}.projectsegfau.lt i.{{ server_prefix }}.psf.lt {
|
inv.{{ server_prefix }}.projectsegfau.lt i.{{ server_prefix }}.psf.lt {
|
||||||
reverse_proxy :7573
|
reverse_proxy :7573
|
||||||
@playback {
|
@pipedproxy {
|
||||||
path /videoplayback
|
path /videoplayback
|
||||||
path /videoplayback/*
|
path /videoplayback/*
|
||||||
|
path /vi/*
|
||||||
|
path /ggpht/*
|
||||||
}
|
}
|
||||||
header @playback {
|
handle @pipedproxy {
|
||||||
Access-Control-Allow-Origin "*"
|
reverse_proxy :6970 {
|
||||||
|
header_up Host "pipedproxy.{{server_prefix}}.projectsegfau.lt"
|
||||||
}
|
}
|
||||||
@jpgRedirect path_regexp maxres2 /vi/(.+)/maxres.jpg
|
@jpgRedirect path_regexp maxres2 /vi/(.+)/maxres.jpg
|
||||||
@thumbnailRedirect path_regexp ggpht /ggpht/(.+)
|
@thumbnailRedirect path /ggpht/*
|
||||||
redir @jpgRedirect /vi/{re.maxres2.1}/maxres2.jpg
|
uri @thumbnailRedirect strip_prefix /ggpht
|
||||||
redir @thumbnailRedirect https://pipedproxy.{{server_prefix}}.projectsegfau.lt/{re.ggpht.1}?host=yt3.ggpht.com
|
rewrite @thumbnailRedirect ?host=yt3.ggpht.com
|
||||||
redir /vi/* https://pipedproxy.{{server_prefix}}.projectsegfau.lt{uri}?host=i.ytimg.com
|
uri @jpgRedirect replace /maxres.jpg /maxres2.jpg
|
||||||
redir /videoplayback/* https://pipedproxy.{{server_prefix}}.projectsegfau.lt{uri}
|
rewrite /vi/* ?host=i.ytimg.com
|
||||||
redir /videoplayback https://pipedproxy.{{server_prefix}}.projectsegfau.lt{uri}
|
}
|
||||||
header {
|
header {
|
||||||
# disable FLoC tracking
|
# 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=()";
|
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=()";
|
||||||
|
@ -4,20 +4,23 @@ sl.projectsegfau.lt sl.psf.lt {
|
|||||||
}
|
}
|
||||||
inv.bp.projectsegfau.lt, i.bp.psf.lt, invidious.projectsegfau.lt, inv.projectsegfau.lt, i.psf.lt {
|
inv.bp.projectsegfau.lt, i.bp.psf.lt, invidious.projectsegfau.lt, inv.projectsegfau.lt, i.psf.lt {
|
||||||
reverse_proxy localhost:7573
|
reverse_proxy localhost:7573
|
||||||
@playback {
|
@pipedproxy {
|
||||||
path /videoplayback
|
path /videoplayback
|
||||||
path /videoplayback/*
|
path /videoplayback/*
|
||||||
|
path /vi/*
|
||||||
|
path /ggpht/*
|
||||||
}
|
}
|
||||||
header @playback {
|
handle @pipedproxy {
|
||||||
Access-Control-Allow-Origin "*"
|
reverse_proxy :6970 {
|
||||||
|
header_up Host "pipedproxy.{{server_prefix}}.projectsegfau.lt"
|
||||||
}
|
}
|
||||||
@jpgRedirect path_regexp maxres2 /vi/(.+)/maxres.jpg
|
@jpgRedirect path_regexp maxres2 /vi/(.+)/maxres.jpg
|
||||||
@thumbnailRedirect path_regexp ggpht /ggpht/(.+)
|
@thumbnailRedirect path /ggpht/*
|
||||||
redir @jpgRedirect /vi/{re.maxres2.1}/maxres2.jpg
|
uri @thumbnailRedirect strip_prefix /ggpht
|
||||||
redir @thumbnailRedirect https://proxy.piped.projectsegfau.lt/{re.ggpht.1}?host=yt3.ggpht.com
|
rewrite @thumbnailRedirect ?host=yt3.ggpht.com
|
||||||
redir /vi/* https://proxy.piped.projectsegfau.lt{uri}?host=i.ytimg.com
|
uri @jpgRedirect replace /maxres.jpg /maxres2.jpg
|
||||||
redir /videoplayback/* https://proxy.piped.projectsegfau.lt{uri}
|
rewrite /vi/* ?host=i.ytimg.com
|
||||||
redir /videoplayback https://proxy.piped.projectsegfau.lt{uri}
|
}
|
||||||
header {
|
header {
|
||||||
# disable FLoC tracking
|
# 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=()";
|
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=()";
|
||||||
|
Loading…
Reference in New Issue
Block a user