[PR #836] [CLOSED] Expose MessageLimit as a configuration #1441

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

📋 Pull Request Information

Original PR: https://github.com/binwiederhier/ntfy/pull/836
Author: @zhzy0077
Created: 8/11/2023
Status: Closed

Base: mainHead: zhzy0077-patch-1


📝 Commits (5)

📊 Changes

3 files changed (+10 additions, -0 deletions)

View changed files

📝 cmd/serve.go (+3 -0)
📝 docs/config.md (+1 -0)
📝 server/server.yml (+6 -0)

📄 Description

Problem:
When sending long messages, the server returns

{
    "code": 41303,
    "http": 413,
    "error": "JSON body too large"
}

Changes:
Expose the MessageLimit as a configuration key so users can customize this value.


🔄 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/836 **Author:** [@zhzy0077](https://github.com/zhzy0077) **Created:** 8/11/2023 **Status:** ❌ Closed **Base:** `main` ← **Head:** `zhzy0077-patch-1` --- ### 📝 Commits (5) - [`3691e59`](https://github.com/binwiederhier/ntfy/commit/3691e59af1b5ab0857db07059ce5eb4f19c68a35) Expose MessageLimit as a configuration - [`6bd8875`](https://github.com/binwiederhier/ntfy/commit/6bd887537509fa9fccd0781ecde38e3faba993de) fix typo and update docs - [`6a3f169`](https://github.com/binwiederhier/ntfy/commit/6a3f169a4770db61b5826b2d56e6027d0eac94f2) fix typo. - [`f565302`](https://github.com/binwiederhier/ntfy/commit/f565302a0fac93984d08314836d0ef5500a48bb6) Fix typo - [`6a10bac`](https://github.com/binwiederhier/ntfy/commit/6a10bac017ddfd400635f552cd421235cac9d99f) Update template server.yml ### 📊 Changes **3 files changed** (+10 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `cmd/serve.go` (+3 -0) 📝 `docs/config.md` (+1 -0) 📝 `server/server.yml` (+6 -0) </details> ### 📄 Description **Problem:** When sending long messages, the server returns ```json { "code": 41303, "http": 413, "error": "JSON body too large" } ``` **Changes:** Expose the *MessageLimit* as a configuration key so users can customize this value. --- <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:07 +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#1441
No description provided.