Skip to content

Make bounce rules file path configurable from root config#484

Merged
NickOvt merged 1 commit intozone-eu:masterfrom
Gladiak:customizableBouncesTxtPath
Mar 12, 2026
Merged

Make bounce rules file path configurable from root config#484
NickOvt merged 1 commit intozone-eu:masterfrom
Gladiak:customizableBouncesTxtPath

Conversation

@Gladiak
Copy link
Contributor

@Gladiak Gladiak commented Mar 2, 2026

What changed

  • Added a new root-level config key: bouncesFile in config/default.js (default: path.join(__dirname, 'bounces.txt')).
  • Updated lib/bounces.js to load bounce rules from config.bouncesFile.
  • Kept backward compatibility by falling back to the previous hardcoded path.

Notes

  • Error logging (_file in GELF payload) now reports the actual bounce rules file path being used.

@NickOvt NickOvt self-requested a review March 12, 2026 09:55
Copy link
Collaborator

@NickOvt NickOvt left a comment

Choose a reason for hiding this comment

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

LGTM!

@NickOvt NickOvt merged commit c7aff66 into zone-eu:master Mar 12, 2026
4 checks passed
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.

2 participants