From a389dfcdf0084cbe3afe55bae8490a22232a5b09 Mon Sep 17 00:00:00 2001 From: Eliot Berriot <contact@eliotberriot.com> Date: Thu, 25 Apr 2019 10:04:09 +0200 Subject: [PATCH] Fix #770: Document how to use Redis over unix sockets --- changes/changelog.d/770.doc | 1 + deploy/env.prod.sample | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 changes/changelog.d/770.doc diff --git a/changes/changelog.d/770.doc b/changes/changelog.d/770.doc new file mode 100644 index 00000000..4f419f20 --- /dev/null +++ b/changes/changelog.d/770.doc @@ -0,0 +1 @@ +Document how to use Redis over unix sockets (#770) diff --git a/deploy/env.prod.sample b/deploy/env.prod.sample index 1f09046c..9fd17204 100644 --- a/deploy/env.prod.sample +++ b/deploy/env.prod.sample @@ -75,7 +75,15 @@ REVERSE_PROXY_TYPE=nginx # CACHE_URL=redis://:password@localhost:6379/0 # (the extra semicolon is important) # Use the next one if you followed Debian installation guide +# # CACHE_URL=redis://127.0.0.1:6379/0 +# +# If you want to use Redis over unix sockets, you'll actually need two variables: +# For the cache part: +# CACHE_URL=redis:///run/redis/redis.sock?db=0 +# For the Celery/asynchronous tasks part: +# CELERY_BROKER_URL=redis+socket:///run/redis/redis.sock?virtual_host=0 + # Where media files (such as album covers or audio tracks) should be stored # on your system? -- GitLab