From 178e6b2d9b05f2ab17177397536e0830b7b6c156 Mon Sep 17 00:00:00 2001 From: Paramtamtam <7326800+tarampampam@users.noreply.github.com> Date: Tue, 22 Feb 2022 20:48:55 +0500 Subject: [PATCH] New template `lost-in-space` (#68) --- .github/workflows/tests.yml | 1 + CHANGELOG.md | 6 + README.md | 3 + error-pages.yml | 1 + templates/lost-in-space.html | 387 +++++++++++++++++++++++++++++++++++ 5 files changed, 398 insertions(+) create mode 100644 templates/lost-in-space.html diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index abfd354..f59fd7c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -150,6 +150,7 @@ jobs: # Docs: test -f ./out/noise/404.html test -f ./out/hacker-terminal/404.html test -f ./out/cats/404.html + test -f ./out/lost-in-space/404.html docker-image: name: Build docker image diff --git a/CHANGELOG.md b/CHANGELOG.md index ee4e215..bacf1ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog][keepachangelog] and this project adheres to [Semantic Versioning][semver]. +## UNRELEASED + +### Added + +- Template `lost-in-space` + ## v2.6.0 ### Added diff --git a/README.md b/README.md index 44f67c6..ca926b4 100644 --- a/README.md +++ b/README.md @@ -114,6 +114,7 @@ Transfer/sec: 140.23MB | `noise` | [![noise][noise-screen]][noise-link] | | `hacker-terminal` | [![hacker-terminal][hacker-terminal-screen]][hacker-terminal-link] | | `cats` | [![cats][cats-screen]][cats-link] | +| `lost-in-space` | [![lost-in-space][lost-in-space-screen]][lost-in-space-link] | > Note: `noise` template highly uses the CPU, be careful @@ -131,6 +132,8 @@ Transfer/sec: 140.23MB [hacker-terminal-link]:https://tarampampam.github.io/error-pages/hacker-terminal/404.html [cats-screen]:https://hsto.org/webt/_g/y-/ke/_gy-keqinz-3867jbw36v37-iwe.jpeg [cats-link]:https://tarampampam.github.io/error-pages/cats/404.html +[lost-in-space-screen]:https://hsto.org/webt/lf/ln/x8/lflnx8fuy4rofxju34ttskijdsu.gif +[lost-in-space-link]:https://tarampampam.github.io/error-pages/lost-in-space/404.html ## 🦾 Contributors diff --git a/error-pages.yml b/error-pages.yml index 08fdd80..5b023a6 100644 --- a/error-pages.yml +++ b/error-pages.yml @@ -11,6 +11,7 @@ templates: - path: ./templates/noise.html - path: ./templates/hacker-terminal.html - path: ./templates/cats.html + - path: ./templates/lost-in-space.html formats: json: diff --git a/templates/lost-in-space.html b/templates/lost-in-space.html new file mode 100644 index 0000000..6f41546 --- /dev/null +++ b/templates/lost-in-space.html @@ -0,0 +1,387 @@ + + + + + + + + {{ message }} + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+

{{ code }}

+

UH OH! {{ message }}

+

{{ description }}

+ + {{ if show_details }} +
    + {{- if host }}
  • Host: {{ host }}
  • {{ end -}} + {{- if original_uri }}
  • Original URI: {{ original_uri }}
  • {{ end -}} + {{- if forwarded_for }}
  • Forwarded for: {{ forwarded_for }}
  • {{ end -}} + {{- if namespace }}
  • Namespace: {{ namespace }}
  • {{ end -}} + {{- if ingress_name }}
  • Ingress name: {{ ingress_name }}
  • {{ end -}} + {{- if service_name }}
  • Service name: {{ service_name }}
  • {{ end -}} + {{- if service_port }}
  • Service port: {{ service_port }}
  • {{ end -}} + {{- if request_id }}
  • Request ID: {{ request_id }}
  • {{ end -}} +
  • Timestamp: {{ now.Unix }}
  • +
+ {{ end }} +
+
+ + + + + + + +