[PR #5607] [MERGED] feat: allow configurable collector port #5494

Closed
opened 2026-06-05 15:21:31 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/5607
Author: @officialasishkumar
Created: 5/11/2026
Status: Merged
Merged: 5/11/2026
Merged by: @timothycarambat

Base: masterHead: 5114-configurable-collector-port


📝 Commits (5)

  • 07964ed feat: allow configuring collector port
  • e7ff353 refactor
  • 56dc81e Merge branch 'master' of github.com:Mintplex-Labs/anything-llm into pr-5607-branch
  • 54f2f25 persist collector save in prod
  • 00f346e Merge branch 'master' into 5114-configurable-collector-port

📊 Changes

8 files changed (+58 additions, -6 deletions)

View changed files

📝 collector/.env.example (+4 -1)
📝 collector/index.js (+4 -3)
📝 collector/utils/http/index.js (+19 -0)
📝 docker/.env.example (+3 -0)
📝 server/.env.example (+3 -0)
📝 server/utils/collectorApi/index.js (+23 -1)
📝 server/utils/comKey/index.js (+1 -1)
📝 server/utils/helpers/updateENV.js (+1 -0)

📄 Description

Pull Request Type

  • feat (New feature)
  • 🐛 fix (Bug fix)
  • ♻️ refactor (Code refactoring without changing behavior)
  • 💄 style (UI style changes)
  • 🔨 chore (Build, CI, maintenance)
  • 📝 docs (Documentation updates)

Relevant Issues

resolves #5114

Description

Allows the document collector process to listen on a configured port using COLLECTOR_PORT, instead of always binding to 8888.

The server-side collector client already reads COLLECTOR_PORT; this change makes the collector process use the same setting, applies the same port validation on the server endpoint, and documents the variable in the server, collector, and Docker env examples.

Visuals (if applicable)

N/A

Additional Information

Invalid COLLECTOR_PORT values fall back to 8888, matching the existing default behavior.

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated (if applicable)
  • I have tested my code functionality
  • Docker build succeeds locally

Validation performed:

  • node --check collector/index.js
  • node --check server/utils/collectorApi/index.js
  • node --check server/utils/comKey/index.js
  • YARN_CACHE_FOLDER=.yarn-cache yarn install --frozen-lockfile --ignore-scripts in collector
  • YARN_CACHE_FOLDER=.yarn-cache yarn install --frozen-lockfile --ignore-scripts in server
  • yarn lint:check in collector
  • yarn lint:check in server
  • git diff --check

🔄 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/Mintplex-Labs/anything-llm/pull/5607 **Author:** [@officialasishkumar](https://github.com/officialasishkumar) **Created:** 5/11/2026 **Status:** ✅ Merged **Merged:** 5/11/2026 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `5114-configurable-collector-port` --- ### 📝 Commits (5) - [`07964ed`](https://github.com/Mintplex-Labs/anything-llm/commit/07964edfeeea3b5f0338cde6afc002c06474fc28) feat: allow configuring collector port - [`e7ff353`](https://github.com/Mintplex-Labs/anything-llm/commit/e7ff353ae5c9ccedadc2cdd39d899d6d1cf887ce) refactor - [`56dc81e`](https://github.com/Mintplex-Labs/anything-llm/commit/56dc81ec7a747fe23aada8703f7a771a8a56647e) Merge branch 'master' of github.com:Mintplex-Labs/anything-llm into pr-5607-branch - [`54f2f25`](https://github.com/Mintplex-Labs/anything-llm/commit/54f2f2537e6b412fab367357497ad37cbaa3bc22) persist collector save in prod - [`00f346e`](https://github.com/Mintplex-Labs/anything-llm/commit/00f346e499e347655d9609a4746727ba50156b48) Merge branch 'master' into 5114-configurable-collector-port ### 📊 Changes **8 files changed** (+58 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `collector/.env.example` (+4 -1) 📝 `collector/index.js` (+4 -3) 📝 `collector/utils/http/index.js` (+19 -0) 📝 `docker/.env.example` (+3 -0) 📝 `server/.env.example` (+3 -0) 📝 `server/utils/collectorApi/index.js` (+23 -1) 📝 `server/utils/comKey/index.js` (+1 -1) 📝 `server/utils/helpers/updateENV.js` (+1 -0) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat (New feature) - [ ] 🐛 fix (Bug fix) - [ ] ♻️ refactor (Code refactoring without changing behavior) - [ ] 💄 style (UI style changes) - [ ] 🔨 chore (Build, CI, maintenance) - [x] 📝 docs (Documentation updates) ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #5114 ### Description Allows the document collector process to listen on a configured port using `COLLECTOR_PORT`, instead of always binding to `8888`. The server-side collector client already reads `COLLECTOR_PORT`; this change makes the collector process use the same setting, applies the same port validation on the server endpoint, and documents the variable in the server, collector, and Docker env examples. ### Visuals (if applicable) N/A ### Additional Information Invalid `COLLECTOR_PORT` values fall back to `8888`, matching the existing default behavior. ### Developer Validations <!-- All of the applicable items should be checked. --> - [ ] I ran `yarn lint` from the root of the repo & committed changes - [x] Relevant documentation has been updated (if applicable) - [x] I have tested my code functionality - [ ] Docker build succeeds locally Validation performed: - `node --check collector/index.js` - `node --check server/utils/collectorApi/index.js` - `node --check server/utils/comKey/index.js` - `YARN_CACHE_FOLDER=.yarn-cache yarn install --frozen-lockfile --ignore-scripts` in `collector` - `YARN_CACHE_FOLDER=.yarn-cache yarn install --frozen-lockfile --ignore-scripts` in `server` - `yarn lint:check` in `collector` - `yarn lint:check` in `server` - `git diff --check` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-06-05 15:21:31 -04:00
yindo closed this issue 2026-06-05 15:21:31 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#5494