[PR #1360] [MERGED] Add custom client IP header #1581

Closed
opened 2026-05-07 01:02:45 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/binwiederhier/ntfy/pull/1360
Author: @binwiederhier
Created: 6/1/2025
Status: Merged
Merged: 6/1/2025
Merged by: @binwiederhier

Base: mainHead: client-ip-header


📝 Commits (10+)

  • 926967b adding logic to specifcy client-ip header from proxy
  • 20c014b Adding test and some docs
  • 0e6a483 fixing auto-format change
  • 0aee625 fixing auto-format change
  • a49cafb more correcting auto-formats
  • 2cb4d08 Merge client ip header
  • 849884c Change to "proxy-forwarded-header" and add "proxy-trusted-addrs"
  • eac49fe Merge branch 'main' of github.com:binwiederhier/ntfy into client-ip-header
  • 7a33e16 Cleanup, examples
  • db4ac15 Section

📊 Changes

14 files changed (+512 additions, -309 deletions)

View changed files

📝 cmd/serve.go (+9 -1)
📝 docs/config.md (+60 -6)
📝 docs/releases.md (+6 -0)
📝 go.mod (+12 -12)
📝 go.sum (+28 -27)
📝 server/config.go (+5 -2)
📝 server/server.go (+3 -3)
📝 server/server.yml (+14 -4)
📝 server/server_test.go (+40 -13)
📝 server/util.go (+60 -34)
📝 server/util_test.go (+30 -0)
📝 util/util.go (+20 -7)
📝 util/util_test.go (+0 -5)
📝 web/package-lock.json (+225 -195)

📄 Description

No description provided


🔄 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/binwiederhier/ntfy/pull/1360 **Author:** [@binwiederhier](https://github.com/binwiederhier) **Created:** 6/1/2025 **Status:** ✅ Merged **Merged:** 6/1/2025 **Merged by:** [@binwiederhier](https://github.com/binwiederhier) **Base:** `main` ← **Head:** `client-ip-header` --- ### 📝 Commits (10+) - [`926967b`](https://github.com/binwiederhier/ntfy/commit/926967b6e7e3658b84de1dede794346ebcae5f60) adding logic to specifcy client-ip header from proxy - [`20c014b`](https://github.com/binwiederhier/ntfy/commit/20c014ba8d4874365167a5ba9fa66a32cb6a3c11) Adding test and some docs - [`0e6a483`](https://github.com/binwiederhier/ntfy/commit/0e6a483b2f5d29c9525b2d80f8512d77bc5b71e4) fixing auto-format change - [`0aee625`](https://github.com/binwiederhier/ntfy/commit/0aee6252bbb16b442c2151424eb97577c6f68e0f) fixing auto-format change - [`a49cafb`](https://github.com/binwiederhier/ntfy/commit/a49cafbadb78477b0fb74ca6725d7f664470eb50) more correcting auto-formats - [`2cb4d08`](https://github.com/binwiederhier/ntfy/commit/2cb4d089abdb1ac4a3161b729040ce35b9a0d27c) Merge client ip header - [`849884c`](https://github.com/binwiederhier/ntfy/commit/849884c947640bcbc2591ba3a4a515e8c15dc688) Change to "proxy-forwarded-header" and add "proxy-trusted-addrs" - [`eac49fe`](https://github.com/binwiederhier/ntfy/commit/eac49feb043727c4dec1d9f9024c69783c3ae248) Merge branch 'main' of github.com:binwiederhier/ntfy into client-ip-header - [`7a33e16`](https://github.com/binwiederhier/ntfy/commit/7a33e169458e1a79af88c8e389690ee3bc70013a) Cleanup, examples - [`db4ac15`](https://github.com/binwiederhier/ntfy/commit/db4ac158e360e2bd0d52ae48e58e927d46032f4c) Section ### 📊 Changes **14 files changed** (+512 additions, -309 deletions) <details> <summary>View changed files</summary> 📝 `cmd/serve.go` (+9 -1) 📝 `docs/config.md` (+60 -6) 📝 `docs/releases.md` (+6 -0) 📝 `go.mod` (+12 -12) 📝 `go.sum` (+28 -27) 📝 `server/config.go` (+5 -2) 📝 `server/server.go` (+3 -3) 📝 `server/server.yml` (+14 -4) 📝 `server/server_test.go` (+40 -13) 📝 `server/util.go` (+60 -34) 📝 `server/util_test.go` (+30 -0) 📝 `util/util.go` (+20 -7) 📝 `util/util_test.go` (+0 -5) 📝 `web/package-lock.json` (+225 -195) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-07 01:02:45 +02: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/ntfy#1581
No description provided.