diff --git a/INSTALL.md b/INSTALL.md index 7da0c52c..ea47fd93 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -105,6 +105,7 @@ There are a couple of environment variables you can set to configure OSEM. Check | CLOUDINARY_URL | *string* | Configure your cloudinary.com cloud name and api key/secret | STRIPE_PUBLISHABLE_KEY | *string* | Publishable Key for Stripe Gateway | STRIPE_SECRET_KEY | *string* | Secret Key for Stripe Gateway +| OSEM_REDIS_URL | *string* | Redis server URL e.g. redis://localhost:6379/1 ### Online Ticket Payments We use [Stripe](https://stripe.com) for accepting your ticket payments securely over the web. diff --git a/config/cable.yml b/config/cable.yml index 0bbde6f7..e9bac116 100644 --- a/config/cable.yml +++ b/config/cable.yml @@ -6,4 +6,4 @@ test: production: adapter: redis - url: redis://localhost:6379/1 + url: <%= ENV['OSEM_REDIS_URL'] %> diff --git a/dotenv.example b/dotenv.example index a5622a4c..e0e3f519 100644 --- a/dotenv.example +++ b/dotenv.example @@ -70,3 +70,6 @@ OSEM_ICHAIN_ENABLED=false # ReCAPTCHA keys RECAPTCHA_SITE_KEY="" RECAPTCHA_SECRET_KEY="" + +# The url of the redis server +OSEM_REDIS_URL='redis://localhost:6379/1'