[PR #16227] [MERGED] Support Redis Unix sockets #14813

Closed
opened 2025-12-29 23:26:53 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/16227
Author: @minijackson
Created: 5/21/2024
Status: Merged
Merged: 5/21/2024
Merged by: @jeremystretch

Base: developHead: unix-sockets


📝 Commits (2)

📊 Changes

2 files changed (+23 additions, -6 deletions)

View changed files

📝 docs/configuration/required-parameters.md (+15 -5)
📝 netbox/netbox/settings.py (+8 -1)

📄 Description

Fixes: #15962

Add a URL field for the REDIS["tasks"] and REDIS["caching"] configuration settings, which takes priority over REDIS["tasks"]["HOST"], REDIS["tasks"]["PORT"], and so on.

I added the doc recommending the URL usage for Unix sockets, but it's also possible to recommend URL for all usages, since you can also specify redis:// / rediss:// URLs.

I haven't tested this using ./manage.py test yet, I plan to do that soon. This setup has been in use in the NixOS distribution since while back, without any issue.


🔄 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/netbox-community/netbox/pull/16227 **Author:** [@minijackson](https://github.com/minijackson) **Created:** 5/21/2024 **Status:** ✅ Merged **Merged:** 5/21/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `unix-sockets` --- ### 📝 Commits (2) - [`92900fd`](https://github.com/netbox-community/netbox/commit/92900fd887f11487ab019d9fcac90e87dc10f59a) Fixes #15962: support Redis Unix sockets - [`48db48c`](https://github.com/netbox-community/netbox/commit/48db48c8d467a15eb502fb5573844edfa985cd64) Clean up language & remove obsolete note ### 📊 Changes **2 files changed** (+23 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `docs/configuration/required-parameters.md` (+15 -5) 📝 `netbox/netbox/settings.py` (+8 -1) </details> ### 📄 Description ### Fixes: #15962 Add a `URL` field for the `REDIS["tasks"]` and `REDIS["caching"]` configuration settings, which takes priority over `REDIS["tasks"]["HOST"]`, `REDIS["tasks"]["PORT"]`, and so on. I added the doc recommending the `URL` usage for Unix sockets, but it's also possible to recommend `URL` for all usages, since you can also specify `redis://` / `rediss://` URLs. I haven't tested this using `./manage.py test` yet, I plan to do that soon. This setup has been in use in the NixOS distribution since while back, without any issue. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:26:53 +01:00
adam closed this issue 2025-12-29 23:26:53 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14813