From 32799512952600445f4e46390c6a11176b26c8e2 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Mon, 23 May 2022 03:06:20 -0500 Subject: [PATCH] Clean up a few more domains --- .gitignore | 2 -- conf.d/errors.bbaovanc.com | 9 --------- conf.d/lists.bbaovanc.com | 10 ---------- errors/dl.sh | 5 ----- errors/index.html | 2 +- 5 files changed, 1 insertion(+), 27 deletions(-) delete mode 100644 conf.d/errors.bbaovanc.com delete mode 100644 conf.d/lists.bbaovanc.com delete mode 100755 errors/dl.sh diff --git a/.gitignore b/.gitignore index 3cf3a88..7df2c28 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1 @@ email - -errors/img diff --git a/conf.d/errors.bbaovanc.com b/conf.d/errors.bbaovanc.com deleted file mode 100644 index 8cc3803..0000000 --- a/conf.d/errors.bbaovanc.com +++ /dev/null @@ -1,9 +0,0 @@ -# vim: ft=caddyfile - -errors.bbaovanc.com { - encode zstd gzip - import hsts - root * /etc/caddy/errors/img - file_server - import basicerrors -} diff --git a/conf.d/lists.bbaovanc.com b/conf.d/lists.bbaovanc.com deleted file mode 100644 index 8287ac2..0000000 --- a/conf.d/lists.bbaovanc.com +++ /dev/null @@ -1,10 +0,0 @@ -# vim: ft=caddyfile - -lists.bbaovanc.com { - encode zstd gzip - import hsts - - reverse_proxy localhost:85 - - import basicerrors -} diff --git a/errors/dl.sh b/errors/dl.sh deleted file mode 100755 index ac710c0..0000000 --- a/errors/dl.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -x - -mkdir -p img/ -cd img/ -curl https://http.cat | grep -oE '[0-9]{3}\.jpg' | sort | uniq | parallel $@ 'wget -q https://http.cat/{} && echo "DL {}"' diff --git a/errors/index.html b/errors/index.html index a001295..962391d 100644 --- a/errors/index.html +++ b/errors/index.html @@ -2,7 +2,7 @@ {{ $text := placeholder "http.error.status_text" -}} {{ $full_text := printf "%s %s" (placeholder "http.error.status_code") (placeholder "http.error.status_text") -}} {{ $host := placeholder "http.request.host" -}} -{{ $img_url := (printf "https://errors.bbaovanc.com/%s.jpg" $code) -}} +{{ $img_url := (printf "https://http.cat/%s.jpg" $code) -}} {{ $full_text }}