invidious: disable CSP

This commit is contained in:
Arya 2024-05-09 15:27:18 +05:30
parent 1feed32d7c
commit 1b517bb306
Signed by: arya
GPG Key ID: 842D12BDA50DF120
2 changed files with 3 additions and 1 deletions

View File

@ -143,13 +143,14 @@ inv.{{ server_prefix }}.projectsegfau.lt i.{{ server_prefix }}.psf.lt {
uri @jpgRedirect replace /maxres.jpg /maxres2.jpg uri @jpgRedirect replace /maxres.jpg /maxres2.jpg
rewrite /vi/* ?host=i.ytimg.com rewrite /vi/* ?host=i.ytimg.com
} }
header -X-Frame-Options
log { log {
# This is temporarily required to monitor nitter traffic due to scrapers being more active, so we need to monitor and rate limit them at a later date. # This is temporarily required to monitor nitter traffic due to scrapers being more active, so we need to monitor and rate limit them at a later date.
output file /var/log/caddy/ratelimiters.log output file /var/log/caddy/ratelimiters.log
format json format json
} }
import def import def
header -X-Frame-Options
header -Content-Security-Policy
import torloc inv import torloc inv
} }
gothub.{{ server_prefix }}.projectsegfau.lt gothub.projectsegfau.lt gh.psf.lt gh.{{ server_prefix }}.psf.lt { gothub.{{ server_prefix }}.projectsegfau.lt gothub.projectsegfau.lt gh.psf.lt gh.{{ server_prefix }}.psf.lt {

View File

@ -30,6 +30,7 @@ inv.bp.projectsegfau.lt, i.bp.psf.lt, invidious.projectsegfau.lt, inv.projectseg
} }
import def import def
header -X-Frame-Options header -X-Frame-Options
header -Content-Security-Policy
import torloc invbp import torloc invbp
} }
piped.projectsegfau.lt proxy.piped.projectsegfau.lt api.piped.projectsegfau.lt { piped.projectsegfau.lt proxy.piped.projectsegfau.lt api.piped.projectsegfau.lt {