add redis socket use

This commit is contained in:
ianux
2024-05-05 16:01:09 +02:00
parent f4195f1ced
commit 28d19e03ee
+9
View File
@@ -766,6 +766,15 @@ Add the following settings to your ``settings.py`` file:
REDIS_QUOTA_DB = 0
REDIS_URL = 'redis://{}:{}/{}'.format(REDIS_HOST, REDIS_PORT, REDIS_QUOTA_DB)
Or, if Redis listen on unix socket:
.. sourcecode:: python
REDIS_HOST = '/path/to/redis/socket'
REDIS_PORT = 6379
REDIS_QUOTA_DB = 0
REDIS_URL = 'unix://{}?db={}'.format(REDIS_HOST, REDIS_QUOTA_DB)
Once done, you can start the policy daemon using the following commands:
.. sourcecode:: bash