Add OFN_REDIS_CABLE_URL env variable

It lets us specify a redis url to be used with ActionCable
This commit is contained in:
Gaetan Craig-Riou
2025-01-15 10:59:29 +11:00
parent a5c199d397
commit a3e939e0ac
2 changed files with 5 additions and 4 deletions

View File

@@ -16,6 +16,7 @@ SECRET_TOKEN="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
OFN_REDIS_URL="redis://localhost:6379/1"
OFN_REDIS_JOBS_URL="redis://localhost:6379/2"
OFN_REDIS_CABLE_URL="redis://localhost:6379/0"
SITE_URL="0.0.0.0:3000"

View File

@@ -1,19 +1,19 @@
development:
adapter: redis
url: <%= ENV.fetch("OFN_REDIS_URL", "redis://localhost:6379/1") %>
url: <%= ENV.fetch("OFN_REDIS_CABLE_URL", "redis://localhost:6379/1") %>
channel_prefix: your_application_development
production:
adapter: redis
url: <%= ENV.fetch("OFN_REDIS_URL", "redis://localhost:6379/0") %>
url: <%= ENV.fetch("OFN_REDIS_CABLE_URL", "redis://localhost:6379/0") %>
channel_prefix: your_application_production
staging:
adapter: redis
url: <%= ENV.fetch("OFN_REDIS_URL", "redis://localhost:6379/0") %>
url: <%= ENV.fetch("OFN_REDIS_CABLE_URL", "redis://localhost:6379/0") %>
channel_prefix: your_application_staging
test:
adapter: redis
url: <%= ENV.fetch("OFN_REDIS_URL", "redis://localhost:6379/1") %>
url: <%= ENV.fetch("OFN_REDIS_CABLE_URL", "redis://localhost:6379/1") %>
channel_prefix: your_application_test