[GH-ISSUE #1604] configure log-level-overrides to trace only events to forbidden topics #1125

Open
opened 2026-05-07 00:30:26 +02:00 by BreizhHardware · 0 comments

Originally created by @lucdig on GitHub (Feb 14, 2026).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1604

Question

Hi, my configuration is:

auth-default-access: "deny-all"
log-level: info
log-format: text

auth-access:
 - "*:my_topic:rw"

If some client tries to send notifications to any other topic than my_topic, the reponse (correct) is:
{"code":40301,"http":403,"error":"forbidden","link":"https://ntfy.sh/docs/publish/#authentication"}

Now, I would like to debug (with log-level-overrides ?) only when a client sends something to a forbidden topic.
I'm interested in knowing the IP of the client.

My ntfy is behind-proxy: true, so, the IP written in the logs must be the x-forwarded-for

Thanks

Originally created by @lucdig on GitHub (Feb 14, 2026). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1604 <!-- Before you submit, consider asking on Discord/Matrix instead. You'll usually get an answer sooner, and there are more people there to help! - Discord: https://discord.gg/cT7ECsZj9w - Matrix: https://matrix.to/#/#ntfy:matrix.org / https://matrix.to/#/#ntfy-space:matrix.org --> :question: **Question** <!-- Go ahead and ask your question here :) --> Hi, my configuration is: ``` auth-default-access: "deny-all" log-level: info log-format: text auth-access: - "*:my_topic:rw" ``` If some client tries to send notifications to any other topic than `my_topic`, the reponse (correct) is: `{"code":40301,"http":403,"error":"forbidden","link":"https://ntfy.sh/docs/publish/#authentication"} ` Now, I would like to debug (with `log-level-overrides` ?) only when a client sends something to a forbidden topic. I'm interested in knowing the **IP** of the client. My ntfy is `behind-proxy: true`, so, the IP written in the logs must be the `x-forwarded-for` Thanks
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#1125
No description provided.