From 0782130f36e6a3539437ddccf6ed0da5616763c8 Mon Sep 17 00:00:00 2001 From: Arya Kiran Date: Sun, 17 Nov 2024 17:50:33 +0530 Subject: [PATCH] caddyfmt all the local files --- privfrontends/templates/eu/darknet.Caddyfile | 22 +++++++------- privfrontends/templates/eu/misc.Caddyfile | 30 ++++++++++---------- privfrontends/templates/eu/pubnix.Caddyfile | 16 +++++------ privfrontends/templates/in/apps.Caddyfile | 6 ++-- privfrontends/templates/in/misc.Caddyfile | 28 +++++++++--------- 5 files changed, 51 insertions(+), 51 deletions(-) diff --git a/privfrontends/templates/eu/darknet.Caddyfile b/privfrontends/templates/eu/darknet.Caddyfile index 4139a7e..8d6e406 100644 --- a/privfrontends/templates/eu/darknet.Caddyfile +++ b/privfrontends/templates/eu/darknet.Caddyfile @@ -1,4 +1,4 @@ -http://www.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion { +http://www.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion { reverse_proxy https://projectsegfau.lt { header_up Host "projectsegfau.lt" } @@ -28,15 +28,15 @@ http://*.p.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion { } # Privacy Frontends -http://lbry.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion { +http://lbry.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion { import tor lbry reverse_proxy :3550 } -http://nitter.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion { +http://nitter.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion { reverse_proxy :8387 import tor nitter } -http://libreddit.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion { +http://libreddit.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion { import tor libreddit reverse_proxy :6464 } @@ -44,13 +44,13 @@ http://teddit.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion { import tor teddit reverse_proxy :9061 } -http://inv.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion { +http://inv.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion { import tor inv reverse_proxy https://invidious.projectsegfau.lt { header_up Host "invidious.projectsegfau.lt" } } -http://invbp.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion { +http://invbp.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion { import tor invbp reverse_proxy :7573 } @@ -78,13 +78,13 @@ http://rimgo.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion { header_up Host "rimgo.projectsegfau.lt" } } -http://breezewiki.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion { +http://breezewiki.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion { import tor breezewiki reverse_proxy https://bw.projectsegfau.lt { header_up Host "bw.projectsegfau.lt" } } -http://scribe.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion { +http://scribe.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion { reverse_proxy https://scribe.projectsegfau.lt { header_up Host "scribe.projectsegfau.lt" } @@ -102,20 +102,20 @@ http://safetwitch.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion } import tor safetwitch } -http://search.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion { +http://search.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion { import tor search reverse_proxy https://search.projectsegfau.lt { header_up Host "search.projectsegfau.lt" } } -http://git.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion { +http://git.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion { import tor git reverse_proxy https://git.projectsegfau.lt { header_up Host "git.projectsegfau.lt" } } -http://todo.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion { +http://todo.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion { import tor todo reverse_proxy https://todo.projectsegfau.lt { header_up Host "todo.projectsegfau.lt" diff --git a/privfrontends/templates/eu/misc.Caddyfile b/privfrontends/templates/eu/misc.Caddyfile index 80b4e90..10a764d 100644 --- a/privfrontends/templates/eu/misc.Caddyfile +++ b/privfrontends/templates/eu/misc.Caddyfile @@ -31,11 +31,11 @@ inv.bp.projectsegfau.lt, i.bp.psf.lt, invidious.projectsegfau.lt, inv.projectseg rate_limit @ratelimit {remote.ip} 100r/m @ratelimit_pubsub path /feed/webhook /feed/webhook/* rate_limit @ratelimit_pubsub {remote.ip} 2r/s 404 - 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. - output file /var/log/caddy/ratelimiters.log - format json - } + 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. + output file /var/log/caddy/ratelimiters.log + format json + } import torloc invbp } piped.projectsegfau.lt proxy.piped.projectsegfau.lt api.piped.projectsegfau.lt { @@ -74,19 +74,19 @@ ferrit.projectsegfau.lt snooddit.projectsegfau.lt { import acmedns } www.midou.dev midou.dev { -# reverse_proxy https://midou36o.github.io { -# header_up Host {http.reverse_proxy.upstream.hostport} -# } -#root * /var/www/midouwebsite -reverse_proxy :3000 -# Apparently sveltekit built apps needs to have strict path tries. -#try_files {path} {path}/index.html {path}.html =404 -#file_server + # reverse_proxy https://midou36o.github.io { + # header_up Host {http.reverse_proxy.upstream.hostport} + # } + #root * /var/www/midouwebsite + reverse_proxy :3000 + # Apparently sveltekit built apps needs to have strict path tries. + #try_files {path} {path}/index.html {path}.html =404 + #file_server } file.midou.dev { reverse_proxy :8986 } fastdl.midou.dev { - root * /srv/fastdl-tf2 - file_server browse + root * /srv/fastdl-tf2 + file_server browse } diff --git a/privfrontends/templates/eu/pubnix.Caddyfile b/privfrontends/templates/eu/pubnix.Caddyfile index 28a85cd..2963f00 100644 --- a/privfrontends/templates/eu/pubnix.Caddyfile +++ b/privfrontends/templates/eu/pubnix.Caddyfile @@ -36,12 +36,12 @@ publapi.p.projectsegfau.lt { import def } geminiproxy.projectsegfau.lt geminiproxy.p.projectsegfau.lt gp.p.psf.lt { - reverse_proxy 10.7.0.2:8000 - @robots path /robots.txt - handle @robots { - respond `User-agent: * -Disallow: /` 200 - } - import def - import torloc geminiproxy + reverse_proxy 10.7.0.2:8000 + @robots path /robots.txt + handle @robots { + respond `User-agent: * + Disallow: /` 200 + } + import def + import torloc geminiproxy } diff --git a/privfrontends/templates/in/apps.Caddyfile b/privfrontends/templates/in/apps.Caddyfile index 32cff10..922c453 100644 --- a/privfrontends/templates/in/apps.Caddyfile +++ b/privfrontends/templates/in/apps.Caddyfile @@ -56,9 +56,9 @@ mtx.psf.lt { } ss3.psf.lt { - reverse_proxy :4567 - import def -} + reverse_proxy :4567 + import def +} www.projectsegfau.lt www.psf.lt { redir https://projectsegfau.lt{uri} diff --git a/privfrontends/templates/in/misc.Caddyfile b/privfrontends/templates/in/misc.Caddyfile index fafce86..e45bed0 100644 --- a/privfrontends/templates/in/misc.Caddyfile +++ b/privfrontends/templates/in/misc.Caddyfile @@ -14,27 +14,27 @@ tnfiles.perso.in.projectsegfau.lt { import acmedns } mozhi.aryak.me { - reverse_proxy :5046 + reverse_proxy :5046 } dhairya.aryak.me { - header /.well-known/matrix/* Content-Type application/json - header /.well-known/matrix/* Access-Control-Allow-Origin * - handle_path /.well-known/* { - root * /var/www/perso-well-known - file_server - } + header /.well-known/matrix/* Content-Type application/json + header /.well-known/matrix/* Access-Control-Allow-Origin * + handle_path /.well-known/* { + root * /var/www/perso-well-known + file_server + } } http://*.tildevarsh.in https://tildevarsh.in { - respond `R.I.P ~varsh, you'll be missed. :q! - If you are a varsh user and want to get your data, email me@aryak.me with your username from your registered email address. - ` + respond `R.I.P ~varsh, you'll be missed. :q! + If you are a varsh user and want to get your data, email me@aryak.me with your username from your registered email address. + ` } schfiles.aryak.me { - file_server { - browse - } - root * /zfspool/schfiles + file_server { + browse + } + root * /zfspool/schfiles } mirror.bom.albony.in {