From 34131debb5020a52715eb7b05a86fd7c5e682f9e Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Mon, 23 May 2022 03:01:37 -0500 Subject: [PATCH] Clean up some domains --- .gitignore | 4 ---- conf.d/errors.boba.best | 9 --------- conf.d/hetz.boba.best | 13 ------------- conf.d/talkyard.bbaovanc.com | 10 ---------- errors/dl.sh | 5 ----- errors/index.html | 2 +- 6 files changed, 1 insertion(+), 42 deletions(-) delete mode 100644 conf.d/errors.boba.best delete mode 100644 conf.d/hetz.boba.best delete mode 100644 conf.d/talkyard.bbaovanc.com delete mode 100755 errors/dl.sh diff --git a/.gitignore b/.gitignore index db1f4fb..7df2c28 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1 @@ email - -errors/img/ - -conf.d/goaccess.boba.best diff --git a/conf.d/errors.boba.best b/conf.d/errors.boba.best deleted file mode 100644 index cc6593f..0000000 --- a/conf.d/errors.boba.best +++ /dev/null @@ -1,9 +0,0 @@ -# vim: ft=caddyfile - -errors.boba.best { - encode zstd gzip - import hsts - root * /etc/caddy/errors/img - file_server - import basicerrors -} diff --git a/conf.d/hetz.boba.best b/conf.d/hetz.boba.best deleted file mode 100644 index da2c168..0000000 --- a/conf.d/hetz.boba.best +++ /dev/null @@ -1,13 +0,0 @@ -# vim: ft=caddyfile - -hetz.boba.best { - import hsts - - header Access-Control-Allow-Origin * - root * /var/www/hetz.boba.best/public - file_server { - precompressed br gzip - } - - import basicerrors -} diff --git a/conf.d/talkyard.bbaovanc.com b/conf.d/talkyard.bbaovanc.com deleted file mode 100644 index d03084a..0000000 --- a/conf.d/talkyard.bbaovanc.com +++ /dev/null @@ -1,10 +0,0 @@ -# vim: ft=caddyfile - -talkyard.bbaovanc.com { - encode zstd gzip - import hsts - - reverse_proxy localhost:88 - - 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 53a3b0c..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.boba.best/%s.jpg" $code) -}} +{{ $img_url := (printf "https://http.cat/%s.jpg" $code) -}} {{ $full_text }}