[PR #21] [MERGED] feat: Add caddy-cloudflare-ip module for Cloudflare proxy IP trust #21

Closed
opened 2026-02-27 19:08:54 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/CaddyBuilds/caddy-cloudflare/pull/21
Author: @vkartk
Created: 8/20/2025
Status: Merged
Merged: 8/20/2025
Merged by: @vkartk

Base: mainHead: feat/add-cloudflare-ip


📝 Commits (1)

  • 4bb1c03 feat: add caddy-cloudflare-ip module

📊 Changes

3 files changed (+32 additions, -2 deletions)

View changed files

📝 Dockerfile (+2 -1)
📝 Dockerfile.alpine (+2 -1)
📝 README.md (+28 -0)

📄 Description

This PR adds the caddy-cloudflare-ip module to the build.

  • Ensures correct handling of X-Forwarded-For headers when using Cloudflare as a proxy
  • Access logs now show the real client IP instead of Cloudflare’s edge IPs
  • Added documentation with a sample Caddyfile for enabling trusted proxies
  • Noted in README that this feature is available starting with version v2.11.0

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/CaddyBuilds/caddy-cloudflare/pull/21 **Author:** [@vkartk](https://github.com/vkartk) **Created:** 8/20/2025 **Status:** ✅ Merged **Merged:** 8/20/2025 **Merged by:** [@vkartk](https://github.com/vkartk) **Base:** `main` ← **Head:** `feat/add-cloudflare-ip` --- ### 📝 Commits (1) - [`4bb1c03`](https://github.com/CaddyBuilds/caddy-cloudflare/commit/4bb1c03043fbc3daa4257dff59a35424e5460851) feat: add caddy-cloudflare-ip module ### 📊 Changes **3 files changed** (+32 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `Dockerfile` (+2 -1) 📝 `Dockerfile.alpine` (+2 -1) 📝 `README.md` (+28 -0) </details> ### 📄 Description This PR adds the [caddy-cloudflare-ip](https://github.com/WeidiDeng/caddy-cloudflare-ip) module to the build. * Ensures correct handling of `X-Forwarded-For` headers when using Cloudflare as a proxy * Access logs now show the **real client IP** instead of Cloudflare’s edge IPs * Added documentation with a sample Caddyfile for enabling trusted proxies * Noted in README that this feature is available starting with version `v2.11.0` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 19:08:54 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/caddy-cloudflare#21
No description provided.