ansible/privfrontends/templates/eu/misc.Caddyfile

96 lines
3.1 KiB
Plaintext
Raw Normal View History

2023-08-25 15:36:52 +05:30
sl.projectsegfau.lt sl.psf.lt {
reverse_proxy :7777
import def
}
2023-11-13 14:26:56 +05:30
inv.bp.projectsegfau.lt, i.bp.psf.lt, invidious.projectsegfau.lt, inv.projectsegfau.lt, i.psf.lt {
2023-11-23 15:55:00 +05:30
reverse_proxy localhost:7573 {
2023-11-28 23:18:43 +05:30
header_up Host "invidious.projectsegfau.lt"
2023-11-23 15:55:00 +05:30
}
handle @blocked {
header Content-Type text/html
}
# Nonic is fucking us up. I hope we can find a better provider very soon.
respond @blocked 410 {
body <<HTML
<html style="font-family: arial; background-color: #151515; color: #ffffffde; text-align: center; width: 75%; padding: 3em 0px 0px 0px; margin: auto;">
<title>Content blocked.</title>
<h1 style="color: #f8a306;">This page/channel/video is blocked due to Nonic forcing us to honor the fraudulent takedown request.</h1>
<p>You may access this channel through our other servers or any public invidious instance.</p>
<p>Replace this url with <strong><a style="color:#00a584;" href="https://i.in.psf.lt{uri}">i.in.psf.lt</a></strong> or <strong><a style="color:#00a584;" href="https://i.us.psf.lt{uri}">i.us.psf.lt</a></strong>.</p>
<p>Sorry for the inconvenience. This page will be back up once we find a better provider.</p>
<img src="https://midou.dev/takedown.png"/>
</html>
HTML
}
@blocked {
path /channel/UC9GX7E1o69jz1QvO5QvbkZQ
}
2023-12-24 20:45:10 +05:30
@pipedproxy {
path /videoplayback
path /videoplayback/*
path /vi/*
path /ggpht/*
}
handle @pipedproxy {
reverse_proxy :6970 {
header_up Host "proxy.piped.projectsegfau.lt"
}
@jpgRedirect path_regexp maxres2 /vi/(.+)/maxres.jpg
@thumbnailRedirect path /ggpht/*
uri @thumbnailRedirect strip_prefix /ggpht
rewrite @thumbnailRedirect ?host=yt3.ggpht.com
uri @jpgRedirect replace /maxres.jpg /maxres2.jpg
rewrite /vi/* ?host=i.ytimg.com
}
2023-11-23 15:55:00 +05:30
import def
header -X-Frame-Options
2023-07-20 14:24:04 +05:30
import torloc invbp
import i2ploc pjsfi2szfkb4guqzmfmlyq4no46fayertjrwt4h2uughccrh2lvq.b32.i2p
2023-11-10 11:21:55 +05:30
}
2023-12-24 20:45:10 +05:30
piped.projectsegfau.lt proxy.piped.projectsegfau.lt api.piped.projectsegfau.lt {
reverse_proxy :6970
header -X-Frame-Options
import def
}
2023-11-10 11:21:55 +05:30
pi.psf.lt {
2023-12-24 20:45:10 +05:30
reverse_proxy :6970 {
header_up Host "piped.projectsegfau.lt"
}
header -X-Frame-Options
import def
}
proxy.lbry.projectsegfau.lt {
2023-07-20 14:24:04 +05:30
reverse_proxy localhost:3001
import def
}
2023-05-29 14:08:34 +05:30
aryak.me {
2023-07-20 14:24:04 +05:30
reverse_proxy https://prox-arya.p.projectsegfau.lt {
header_up Host prox-arya.p.projectsegfau.lt
}
2023-05-29 14:08:34 +05:30
}
arya.projectsegfau.lt {
redir https://aryak.me{uri}
2023-11-23 15:55:00 +05:30
import acmedns
2023-05-29 14:08:34 +05:30
}
## OLD URL REDIRECTS
bb.us.projectsegfau.lt bb.in.projectsegfau.lt bb.eu.projectsegfau.lt bb.projectsegfau.lt {
2023-07-20 14:24:04 +05:30
import def
import torloc beatbump
import i2ploc pjsflmvtqax7ii44qy4ladap65c3kqspbs7h7krqy7x43uovklla.b32.i2p
redir https://hyperpipe.projectsegfau.lt{uri}
}
ferrit.projectsegfau.lt snooddit.projectsegfau.lt {
2023-07-20 14:24:04 +05:30
redir https://libreddit.projectsegfau.lt{uri} permanent
2024-01-11 16:11:05 +05:30
import acmedns
2023-05-29 14:08:34 +05:30
}
2023-10-13 20:13:36 +05:30
www.midou.dev midou.dev {
# reverse_proxy https://midou36o.github.io {
# header_up Host {http.reverse_proxy.upstream.hostport}
# }
#root * /var/www/midouwebsite
2024-02-10 16:25:03 +05:30
reverse_proxy http://localhost:3000
2023-12-24 20:59:28 +05:30
# Apparently sveltekit built apps needs to have strict path tries.
#try_files {path} {path}/index.html {path}.html =404
#file_server
}