Direct error through Caddy's error route
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 43/100
調査の方向性
Start by reading the implementation and tests for FrankenPHP's error handling, then compare how Caddy's error route is used by the linked caddy-crowdsec-bouncer example, especially its enable_caddy_error option. The issue asks for an option to direct FrankenPHP level errors to that route so Caddy can serve a custom error page; done means the option works for those errors and is covered by tests.
索引モデルが issue の本文から書いたものです。
説明
Describe your feature request
Is your feature request related to a problem? Please describe.
As result of #2711 I am seeing frequent maximum request handling time exceeded pages, which are just black-on-white. This is not exactly consistent with whatever style a website can have, and thus it can potentially confuse users. While web-server failures generally should break the flow and standout, this is a bit much.
Describe the solution you'd like
Caddy has errors route, that allows "secondary" processing, including serving custom error pages (static or not). It would be nice to have an option to direct FrankenPHP-level errors to that route, to be able to customize the error page. Should be similar to enable_caddy_error in https://github.com/hslatman/caddy-crowdsec-bouncer
Describe alternatives you've considered
I can't think of any alternatives really. Maybe to catch the response on Caddy level somehow, perhaps based on combination of response headers. But that feels "messy", when there literally is a route to do handle error events in Caddy.
- 主要言語
- Go
- スター
- 11.4k
- フォーク
- 499
- 平均マージ
- 2日 9時間
- マージ済み PR(30日)
- 40
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
php/frankenphp のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
php/frankenphp#2671 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Include frankenphp version in logs再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンenhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
php/frankenphp#2483 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
suggestion about compile.md再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンenhancement
難易度 1/5 1〜3時間 初心者へのやさしさ 68/100
php/frankenphp#601 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
php/frankenphp#2748 ·
メンテナーはふだん 1 日以内に返信
-
Feature Request: Include ACME DNS modules (e.g. Cloudflare) in official Windows pre-built binariesオープンenhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
php/frankenphp#2731 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
compress: block buffers get re-zeroed on every call, and the zeroing is immediately overwrittenオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ClickHouse/ch-go#1218 ·
メンテナーはふだん 13 日以内に返信
-
effort:s impact:low raised-by:reviewer risk:low
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
medici-finance/assay#4251 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
automation models
難易度 1/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
golang-migrate/migrate#1457 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信