Files
openfoodnetwork/config/cable.yml
Gaetan Craig-Riou a3e939e0ac Add OFN_REDIS_CABLE_URL env variable
It lets us specify a redis url to be used with ActionCable
2025-01-15 10:59:29 +11:00

20 lines
587 B
YAML

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