Compare commits

..

No commits in common. "47c1780ebbb27b4a41d2cb0fe57474aff54275b9" and "cd00151fbdd784979a8a181980cc36061be68c7d" have entirely different histories.

2 changed files with 8 additions and 18 deletions

View File

@ -1,9 +0,0 @@
# vim: ft=caddyfile
ddpe.boba.best {
encode zstd gzip
import hsts
import log
reverse_proxy localhost:86
import basicerrors
}

View File

@ -1,28 +1,27 @@
{{ $code := placeholder "http.error.status_code" -}}
{{ $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) -}}
<html>
<head>
<title>{{ $full_text }}</title>
<title>{{ $code }} {{ $text }}</title>
<meta name="title" content="{{ $full_text }}" />
<meta name="description" content="{{ $full_text }}" />
<meta name="title" content="{{ $code }} {{ $text }}" />
<meta name="description" content="{{ $code }} {{ $text }}" />
<meta property="og:title" content="{{ $full_text }}" />
<meta property="og:description" content="{{ $full_text }}" />
<meta property="og:title" content="{{ $code }} {{ $text }}" />
<meta property="og:description" content="{{ $code }} {{ $text }}" />
<meta property="og:image" content="{{ $img_url }}"/>
<meta property="og:site_name" content="{{ $host }}" />
<meta name="twitter:card" content="summary"/>
<meta name="twitter:image" content="{{ $img_url }}"/>
<meta name="twitter:title" content="{{ $full_text }}" />
<meta name="twitter:description" content="{{ $full_text }}" />
<meta name="twitter:title" content="{{ $code }} {{ $text }}" />
<meta name="twitter:description" content="{{ $code }} {{ $text }}" />
</head>
<body bgcolor="black" text="white">
<center>
<h1>{{ $full_text }}</h1>
<h1>{{ $code }} {{ $text }}</h1>
<img src='{{ $img_url }}' alt="cat" />
</center>
</body>