Skip to content

fix(query-redis-labs): support configurable REDIS_PORT - #493

Open
sundeep8967 wants to merge 1 commit into
appwrite:mainfrom
sundeep8967:fix/redis-port-variable-490
Open

sundeep8967 wants to merge 1 commit into
appwrite:mainfrom
sundeep8967:fix/redis-port-variable-490

Conversation

@sundeep8967

Copy link
Copy Markdown

Summary

Previously node/query-redis-labs/src/redis.js hardcoded port 14714 for the socket connection to Redis Cloud. Because Redis Cloud allocates unique ports per deployed database instance, functions created from this template fail to connect unless the user happens to have port 14714 assigned.

Solution

  • Read REDIS_PORT from process.env in getClient(), parsing it to an integer.
  • Fall back to 14714 to preserve backward compatibility.
  • Document REDIS_PORT in node/query-redis-labs/README.md.

Fixes #490

Previously the Redis socket connection hardcoded port 14714. Redis Cloud
assigns dynamic ports per created database, preventing instances from
connecting when deployed outside port 14714.

Allow configuring REDIS_PORT via environment variable with fallback to
14714 for backward compatibility. Document the variable in README.

Fixes appwrite#490

Signed-off-by: sundeep8967 <sundeep8967@gmail.com>
@appwrite

appwrite Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

🟢 Tier S · Ready to merge

The change implements the optional port override and preserves the existing default without introducing a concrete defect.

The Redis Labs function now reads an optional REDIS_PORT environment variable and uses port 14714 when it is not set. The README documents the new setting and its default.

Verdict New comments Fixed Still open
💬 Commented 0 0 0

Note

@sundeep8967 does not have write access to this repository, so Hansi does not approve automatically. A maintainer can review and approve.

📂 Walkthrough · 2
File Change
node/query-redis-labs/src/redis.js Uses the configured Redis port when provided, retaining the existing default otherwise.
node/query-redis-labs/README.md Documents REDIS_PORT as an optional environment variable.

Reviewed 2d03b6d · Details · Comment @appwrite review to re-run, or mention @appwrite with a question.

@appwrite appwrite Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Tier S · Looks good to merge. Summary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐛 Bug Report: query-redis-labs hardcodes Redis port 14714

1 participant