redis.conf.j2 296 B

12345678910
  1. {% if REDIS_SLAVEOF_IP and REDIS_SLAVEOF_PORT %}
  2. read_servers = "redis-mailcow:6379";
  3. write_servers = "{{ REDIS_SLAVEOF_IP }}:{{ REDIS_SLAVEOF_PORT }}";
  4. password = "{{ REDISPASS }}";
  5. timeout = 10;
  6. {% else %}
  7. servers = "redis-mailcow:6379";
  8. password = "{{ REDISPASS }}";
  9. timeout = 10;
  10. {% endif %}