error.html

This commit is contained in:
Florian Zirker 2025-03-19 08:41:58 +01:00
parent e2666bdfad
commit fff5e468db
2 changed files with 40 additions and 0 deletions

View file

@ -73,6 +73,11 @@ torrent.{$DOMAIN} http://torrent.{$DOMAIN} {
import errorhandler
}
*.{$DOMAIN} http://*.{$DOMAIN} {
error 404
import errorhandler
}
root-ca.{$DOMAIN} http://root-ca.{$DOMAIN} {
file_server * {
root /usr/share/caddy/web

35
proxy/web/error.html Normal file
View file

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<title>Fehler</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
:root {
max-width: 80ch;
padding: 3em 1em;
margin: auto;
font-size: 1.25em;
font-family: Arial, Helvetica, sans-serif;
}
footer {
position: absolute;
bottom: 0;
height: 50px;
}
</style>
</head>
<body>
<h1>{{placeholder "http.error.status_code"}}</h1>
{{placeholder "http.error.status_text"}}
</body>
<footer>
<a href="http://dashboard.lan/">Dashboard</a>
</footer>
</html>