error.html
This commit is contained in:
parent
e2666bdfad
commit
fff5e468db
2 changed files with 40 additions and 0 deletions
|
@ -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
35
proxy/web/error.html
Normal 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>
|
Loading…
Add table
Reference in a new issue