The container health check fails when the HTTPS redirect is on

オープン 初心者向け
#3,275 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
csharp
領域
backend

調査の方向性

src/FluentCMS.Host/HealthProbe.cs と ReverseProxyPipeline.cs:57 から始め、probe が URL を組み立てる方法と、host がパスベースを読み取る方法を比較してください。/health に対する HTTPS リダイレクトの動作と、JSON のパスベース設定を確認してください。HTTPS リダイレクトを有効にし、JSON でパスベースを設定した状態で probe が成功すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

area:host area:operations type:bug

Problem

UseHttpsRedirection() (ReverseProxyPipeline.cs:57) runs before everything, /health included. The image's HEALTHCHECK probe (src/FluentCMS.Host/HealthProbe.cs:19) calls http://localhost:{port}/health/ready with a default HttpClient, follows the redirect to https on localhost where nothing listens, and fails, so the container never becomes healthy once HttpsRedirection:Port is set as docs/reverse-proxy.md advises. The probe also reads the path base from environment variables only, so a path base set in JSON makes it fail too.

Proposal

Exempt /health from the redirect (or stop the probe following redirects), and read the path base as the host does.

Acceptance

  • The probe succeeds with the HTTPS redirect on and with a path base set in JSON

Found in the code review of 17 Nov 2026 (B4).

主要言語
C#
スター
569
フォーク
107
平均マージ
2時間 49分
マージ済み PR(30日)
397

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

fluentcms/FluentCMS のほかの issue

fluentcms/FluentCMS の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。