Skip to content

Dockerfile: support h2c (HTTP/2) protocol on port 80#8354

Draft
schildbach wants to merge 2 commits intoFreshRSS:edgefrom
schildbach:http2
Draft

Dockerfile: support h2c (HTTP/2) protocol on port 80#8354
schildbach wants to merge 2 commits intoFreshRSS:edgefrom
schildbach:http2

Conversation

@schildbach
Copy link
Copy Markdown

@schildbach schildbach commented Dec 25, 2025

Closes #8349

Note this depends on #8353, which would need to be merged first. Thus, I'm marking this as draft for now.

Changes proposed in this pull request:

For running inside Docker, support h2c (HTTP/2) protocol on port 80.

How to test the feature manually:

  1. build and run the Debian docker image, expose port 80
  2. use curl --http1.1 http://localhost:80/ to test for regressions with HTTP/1.1
  3. use curl --http2-prior-knowledge http://localhost:80/ to test HTTP/2 now works (note the protocol in the access log)
  4. use a reverse proxy and forward traffic as h2c, e.g. with Traefik use label:
    - traefik.http.services.freshrss.loadbalancer.server.scheme=h2c

Pull request checklist:

  • clear commit messages
  • code manually tested
  • unit tests written (optional if too hard)
  • documentation updated

Note that HTTP/1.1 is still preferred by the server, so no
automatic upgrades will happen. However clients can use HTTP/2
with "prior knowledge", e.g. reverse proxies.
@Inverle Inverle added the Docker 🐋 Everything related to Docker label Dec 25, 2025
@Inverle Inverle added this to the 1.28.1 milestone Dec 25, 2025
@Alkarex Alkarex modified the milestones: 1.28.1, 1.29.0 Dec 26, 2025
@Alkarex Alkarex removed this from the 1.29.0 milestone Jan 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Docker 🐋 Everything related to Docker

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Support h2c (HTTP/2) protocol

3 participants