diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 246a1f8..c88574b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -154,6 +154,7 @@ jobs: # Docs: test -f ./out/hacker-terminal/404.html test -f ./out/cats/404.html test -f ./out/lost-in-space/404.html + test -f ./out/app-down/404.html docker-image: name: Build docker image diff --git a/CHANGELOG.md b/CHANGELOG.md index ffa4623..04a7cf3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,10 +6,16 @@ The format is based on [Keep a Changelog][keepachangelog] and this project adher ## UNRELEASED +### Added + +- Template `app-down` [#74] + ### Changed - Go updated from `1.17.6` up to `1.18.0` +[#74]:https://github.com/tarampampam/error-pages/pull/74 + ## v2.7.0 ### Changed diff --git a/README.md b/README.md index c2c1ea3..a749ab6 100644 --- a/README.md +++ b/README.md @@ -116,6 +116,7 @@ Transfer/sec: 140.23MB | `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] | +| `app-down` | [![app-down][app-down-screen]][app-down-link] | > Note: `noise` template highly uses the CPU, be careful @@ -135,6 +136,8 @@ Transfer/sec: 140.23MB [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 +[app-down-screen]:https://hsto.org/webt/r3/ys/ql/r3ysqlv_1qj29k3qf_3mliedo8s.png +[app-down-link]:https://tarampampam.github.io/error-pages/app-down/404.html ## 🦾 Contributors diff --git a/error-pages.yml b/error-pages.yml index 5b023a6..46fb4cc 100644 --- a/error-pages.yml +++ b/error-pages.yml @@ -12,6 +12,7 @@ templates: - path: ./templates/hacker-terminal.html - path: ./templates/cats.html - path: ./templates/lost-in-space.html + - path: ./templates/app-down.html formats: json: diff --git a/templates/app-down.html b/templates/app-down.html new file mode 100644 index 0000000..1d6642e --- /dev/null +++ b/templates/app-down.html @@ -0,0 +1,233 @@ + + + + + + + + {{ message }} + + + + + + + +
+
+

{{ message }}

+

{{ description }}

+ +

Double-check the URL.

+ {{ if show_details }} +
+

Request 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 }} +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ code }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + +