GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Feature/expose REDIS_TLS configuration for Redis TLS/SSL connections by KenTandrian · Pull Request #8201 · ghostfolio/ghostfolio

Conversation

@KenTandrian

@KenTandrian KenTandrian commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Hi @dtslvr, this PR resolves #8200. Please take a look :)

This PR adds support for connecting to managed Redis instances (such as AWS ElastiCache, GCP Cloud Memorystore, Azure Cache for Redis, Upstash, etc.) that enforce in-transit encryption (TLS/SSL).

It introduces a REDIS_TLS flag that supplies the tls configuration object to ioredis (covering Bull job queues and rate-limiting storage) and derives the rediss:// protocol scheme for the @keyv/redis cache.

Changes

  • Redis connection configuration (redis.helper.ts):

    • Updated getRedisConnectionOptions() to set tls: {} when REDIS_TLS is enabled so ioredis instances connect over TLS.
    • Updated getRedisConnectionUrl() to dynamically return rediss:// or redis:// based on tls.
  • Environment configuration & typing (environment.interface.ts, configuration.service.ts):

    • Added REDIS_TLS boolean property to Environment interface.
    • Added REDIS_TLS with boolean validation and false default in ConfigurationService.
  • Unit tests (redis.helper.spec.ts):

    • Added comprehensive test suite covering options generation and URL formatting with and without TLS and passwords.
  • Documentation & environment templates (README.md, .env.example):

    • Documented REDIS_TLS in the environment variables table in README.md.
    • Added REDIS_TLS=false to .env.example.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@KenTandrian
KenTandrian force-pushed the feat/redis-tls branch from 56cdcea to f6be531 Compare October 17, 2026 07:58
KenTandrian and others added 3 commits October 17, 2026 17:57
@KenTandrian @dtslvr
feat: add REDIS_TLS configuration for Redis TLS/SSL connections
dbd4831
- Add REDIS_TLS environment variable to enable TLS for Redis
- Pass tls options in getRedisConnectionOptions for ioredis (Bull queues & rate limiting)
- Derive rediss:// URL in getRedisConnectionUrl for @keyv/redis cache
- Add unit tests for redis.helper
- Document REDIS_TLS in README.md and .env.example
@dtslvr
Expose REDIS_TLS environment variable
d30b7ce
@dtslvr
Update changelog
b09af58
@dtslvr
dtslvr force-pushed the feat/redis-tls branch from 1645035 to b09af58 Compare October 17, 2026 16:00
@dtslvr dtslvr changed the title Feat/add REDIS_TLS configuration for Redis TLS/SSL connections Feature/expose REDIS_TLS configuration for Redis TLS/SSL connections Oct 17, 2026
@dtslvr
dtslvr self-requested a review October 17, 2026 16:01
dtslvr
dtslvr approved these changes Oct 17, 2026
View reviewed changes

@dtslvr dtslvr left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Thanks for your contribution, @KenTandrian! 👍🏻

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

KenTandrian reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@dtslvr
dtslvr merged commit 45eaa4b into ghostfolio:main Oct 17, 2026
2 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@KenTandrian
KenTandrian deleted the feat/redis-tls branch October 17, 2026 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@dtslvr dtslvr dtslvr approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[FEATURE] Support SSL/TLS connections for Redis (REDIS_SSL)

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@KenTandrian @dtslvr
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.