diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3748e9d..a5a272a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -154,6 +154,7 @@ jobs: # Docs: test -f ./out/app-down/404.html test -f ./out/connection/404.html test -f ./out/matrix/404.html + test -f ./out/orient/404.html docker-image: name: Build docker image diff --git a/CHANGELOG.md b/CHANGELOG.md index 4643f38..7bbd6f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,14 @@ 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]. +## v2.23.0 + +### Added + +- Template `orient` [#190] + +[#190]:https://github.com/tarampampam/error-pages/pull/190 + ## v2.22.0 ### Changed diff --git a/README.md b/README.md index 47877d7..0cf5bdb 100644 --- a/README.md +++ b/README.md @@ -123,6 +123,7 @@ Transfer/sec: 140.23MB | `app-down` | [![app-down][app-down-screen]][app-down-link] | | `connection` | [![connection][connection-screen]][connection-link] | | `matrix` | [![matrix][matrix-screen]][matrix-link] | +| `orient` | [![orient][orient-screen]][orient-link] | > Note: `noise` template highly uses the CPU, be careful @@ -148,6 +149,8 @@ Transfer/sec: 140.23MB [connection-link]:https://tarampampam.github.io/error-pages/connection/404.html [matrix-screen]:https://hsto.org/webt/ng/tf/oi/ngtfoiolvmq6hf15kimcxmhprhk.gif [matrix-link]:https://tarampampam.github.io/error-pages/matrix/404.html +[orient-screen]:https://hsto.org/webt/pz/eu/v_/pzeuv_lyeqr0xpusa4zfrtgk7sa.png +[orient-link]:https://tarampampam.github.io/error-pages/orient/404.html ## 🦾 Contributors diff --git a/error-pages.yml b/error-pages.yml index 42e6bd1..c23b6f6 100644 --- a/error-pages.yml +++ b/error-pages.yml @@ -15,6 +15,7 @@ templates: - path: ./templates/app-down.html - path: ./templates/connection.html - path: ./templates/matrix.html + - path: ./templates/orient.html formats: json: diff --git a/templates/orient.html b/templates/orient.html new file mode 100644 index 0000000..c0f5d4f --- /dev/null +++ b/templates/orient.html @@ -0,0 +1,279 @@ + + + + + + + + + + + {{ message }} + + + +
+
+
+
{{ code }}
+
+

{{ description }}

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