[PR #24351] [MERGED] fix: prevent OOM on nginx reverse proxy servers #17834

Closed
opened 2026-02-05 16:28:21 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/immich-app/immich/pull/24351
Author: @NicholasFlamy
Created: 12/3/2025
Status: Merged
Merged: 12/3/2025
Merged by: @alextran1502

Base: mainHead: patch-1


📝 Commits (1)

  • fe268d9 Prevent OOM on reverse proxy servers

📊 Changes

1 file changed (+3 additions, -0 deletions)

View changed files

📝 docs/docs/administration/reverse-proxy.md (+3 -0)

📄 Description

Added configuration to disable buffering for uploads.

Description

Adds configuration to disable proxy_request_buffering for nginx because the default of it on results in files uploading to the reverse proxy server and then once it is fully uploaded there it is then uploaded to Immich. It takes twice as long and has the potential to cause OOM on the reverse proxy server (as happened to me).

Fixes https://discord.com/channels/979116623879368755/994044917355663450/1445533330270326835

How Has This Been Tested?

  • Nginx on my OpenWrt router pointed at Immich on my TrueNAS server

Checklist:

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if applicable
  • I have no unrelated changes in the PR.

Please describe to which degree, if any, an LLM was used in creating this pull request.

N/A
...


🔄 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/immich-app/immich/pull/24351 **Author:** [@NicholasFlamy](https://github.com/NicholasFlamy) **Created:** 12/3/2025 **Status:** ✅ Merged **Merged:** 12/3/2025 **Merged by:** [@alextran1502](https://github.com/alextran1502) **Base:** `main` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`fe268d9`](https://github.com/immich-app/immich/commit/fe268d98a3e620d15ff4f185ff18b20aa205915e) Prevent OOM on reverse proxy servers ### 📊 Changes **1 file changed** (+3 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/docs/administration/reverse-proxy.md` (+3 -0) </details> ### 📄 Description Added configuration to disable buffering for uploads. ## Description Adds configuration to disable `proxy_request_buffering` for nginx because the default of it on results in files uploading to the reverse proxy server and then once it is fully uploaded there it is then uploaded to Immich. It takes twice as long and has the potential to cause OOM on the reverse proxy server (as happened to me). Fixes https://discord.com/channels/979116623879368755/994044917355663450/1445533330270326835 ## How Has This Been Tested? <!-- Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration --> - [X] Nginx on my OpenWrt router pointed at Immich on my TrueNAS server <!--<details><summary><h2>Screenshots (if appropriate)</h2></summary> <!-- Images go below this line. - -> </details> --> <!-- API endpoint changes (if relevant) ## API Changes The `/api/something` endpoint is now `/api/something-else` --> ## Checklist: - [X] I have performed a self-review of my own code - [X] I have made corresponding changes to the documentation if applicable - [X] I have no unrelated changes in the PR. ## Please describe to which degree, if any, an LLM was used in creating this pull request. N/A ... --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 16:28:21 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#17834