The container health check fails when the HTTPS redirect is on

Open Beginner friendly
#3,275 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
csharp
Domain
backend

Research direction

Start with src/FluentCMS.Host/HealthProbe.cs and ReverseProxyPipeline.cs:57; compare how the probe builds its URL with how the host reads the path base. Check the HTTPS redirect behavior for /health and the JSON path base setting. Done when the probe succeeds with HTTPS redirection enabled and a path base configured in JSON.

Written by the indexing model from the issue text.

Description

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).

Dominant language
C#
Stars
569
Forks
107
Avg merge
2h 49m
Merged PRs (30d)
397

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from fluentcms/FluentCMS

All issues in fluentcms/FluentCMS

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.