2021-10-15 05:32:31 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<!--
|
|
|
|
Error {{ code }}: {{ message }}
|
|
|
|
Description: {{ description }}
|
|
|
|
-->
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2022-01-27 12:29:49 +00:00
|
|
|
<meta name="robots" content="noindex, nofollow"/>
|
2021-10-15 05:32:31 +00:00
|
|
|
<title>{{ message }}</title>
|
|
|
|
<style>
|
|
|
|
html, body {
|
|
|
|
margin: 0;
|
2022-01-27 12:29:49 +00:00
|
|
|
height: 100vh;
|
2021-10-15 05:32:31 +00:00
|
|
|
background-color: #000;
|
2022-01-27 12:29:49 +00:00
|
|
|
color: #ddd;
|
|
|
|
font-family: 'Open Sans', sans-serif;
|
|
|
|
font-size: 0;
|
2021-10-15 05:32:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.centered {
|
|
|
|
height: 100vh;
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center
|
|
|
|
}
|
|
|
|
|
|
|
|
.centered img {
|
|
|
|
max-width: 750px;
|
|
|
|
width: 100%;
|
|
|
|
}
|
2022-01-27 12:29:49 +00:00
|
|
|
|
|
|
|
/* {{ if show_details }} */
|
|
|
|
.details table {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.details td {
|
|
|
|
font-size: 11px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.details td.name {
|
|
|
|
text-align: right;
|
|
|
|
padding-right: .6em;
|
|
|
|
width: 50%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.details td.value {
|
|
|
|
text-align: left;
|
|
|
|
padding-left: .6em;
|
|
|
|
font-family: 'Lucida Console', 'Courier New', monospace;
|
|
|
|
}
|
|
|
|
/* {{ end }} */
|
2021-10-15 05:32:31 +00:00
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
2022-01-27 12:29:49 +00:00
|
|
|
<div class="centered">
|
|
|
|
<!-- Pictures provider: <https://http.cat/> -->
|
|
|
|
<div>
|
2021-10-15 05:32:31 +00:00
|
|
|
<img src="https://http.cat/{{ code }}.jpg" alt="{{ message }}">
|
2022-01-27 12:29:49 +00:00
|
|
|
{{ if show_details }}
|
|
|
|
<div class="details">
|
|
|
|
<table>
|
2022-01-31 05:40:58 +00:00
|
|
|
{{- if host }}<tr>
|
2022-03-23 19:31:34 +00:00
|
|
|
<td class="name" data-l10n>Host</td>
|
2022-01-31 05:40:58 +00:00
|
|
|
<td class="value">{{ host }}</td>
|
|
|
|
</tr>{{ end -}}
|
2022-01-27 12:29:49 +00:00
|
|
|
{{- if original_uri }}<tr>
|
2022-03-23 19:31:34 +00:00
|
|
|
<td class="name" data-l10n>Original URI</td>
|
2022-01-27 12:29:49 +00:00
|
|
|
<td class="value">{{ original_uri }}</td>
|
|
|
|
</tr>{{ end -}}
|
2022-01-31 05:40:58 +00:00
|
|
|
{{- if forwarded_for }}<tr>
|
2022-03-23 19:31:34 +00:00
|
|
|
<td class="name" data-l10n>Forwarded for</td>
|
2022-01-31 05:40:58 +00:00
|
|
|
<td class="value">{{ forwarded_for }}</td>
|
|
|
|
</tr>{{ end -}}
|
2022-01-27 12:29:49 +00:00
|
|
|
{{- if namespace }}<tr>
|
2022-03-23 19:31:34 +00:00
|
|
|
<td class="name" data-l10n>Namespace</td>
|
2022-01-27 12:29:49 +00:00
|
|
|
<td class="value">{{ namespace }}</td>
|
|
|
|
</tr>{{ end -}}
|
|
|
|
{{- if ingress_name }}<tr>
|
2022-03-23 19:31:34 +00:00
|
|
|
<td class="name" data-l10n>Ingress name</td>
|
2022-01-27 12:29:49 +00:00
|
|
|
<td class="value">{{ ingress_name }}</td>
|
|
|
|
</tr>{{ end -}}
|
|
|
|
{{- if service_name }}<tr>
|
2022-03-23 19:31:34 +00:00
|
|
|
<td class="name" data-l10n>Service name</td>
|
2022-01-27 12:29:49 +00:00
|
|
|
<td class="value">{{ service_name }}</td>
|
|
|
|
</tr>{{ end -}}
|
|
|
|
{{- if service_port }}<tr>
|
2022-03-23 19:31:34 +00:00
|
|
|
<td class="name" data-l10n>Service port</td>
|
2022-01-27 12:29:49 +00:00
|
|
|
<td class="value">{{ service_port }}</td>
|
|
|
|
</tr>{{ end -}}
|
|
|
|
{{- if request_id }}<tr>
|
2022-03-23 19:31:34 +00:00
|
|
|
<td class="name" data-l10n>Request ID</td>
|
2022-01-27 12:29:49 +00:00
|
|
|
<td class="value">{{ request_id }}</td>
|
|
|
|
</tr>{{ end -}}
|
|
|
|
<tr>
|
2022-03-23 19:31:34 +00:00
|
|
|
<td class="name" data-l10n>Timestamp</td>
|
2022-01-27 12:29:49 +00:00
|
|
|
<td class="value">{{ now.Unix }}</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2021-10-15 05:32:31 +00:00
|
|
|
</div>
|
2022-01-27 12:29:49 +00:00
|
|
|
</div>
|
2022-03-23 19:31:34 +00:00
|
|
|
<script>
|
2022-04-12 10:34:35 +00:00
|
|
|
// {{ if l10n_enabled }}
|
2022-03-23 19:31:34 +00:00
|
|
|
if (navigator.language.substring(0, 2).toLowerCase() !== 'en') {
|
|
|
|
((s, p) => { // localize the page (details here - https://github.com/tarampampam/error-pages/tree/master/l10n)
|
|
|
|
s.src = 'https://cdn.jsdelivr.net/gh/tarampampam/error-pages@2/l10n/l10n.min.js'; // '../l10n/l10n.js';
|
|
|
|
s.async = s.defer = true;
|
|
|
|
s.addEventListener('load', () => p.removeChild(s));
|
|
|
|
p.appendChild(s);
|
|
|
|
})(document.createElement('script'), document.body);
|
|
|
|
}
|
2022-04-12 10:34:35 +00:00
|
|
|
// {{ end }}
|
2022-03-23 19:31:34 +00:00
|
|
|
</script>
|
2021-10-15 05:32:31 +00:00
|
|
|
</body>
|
|
|
|
<!--
|
|
|
|
Error {{ code }}: {{ message }}
|
|
|
|
Description: {{ description }}
|
|
|
|
-->
|
|
|
|
</html>
|