diff --git a/templates/default/documentation.html.ep b/templates/default/documentation.html.ep index 5524add..a3c46ec 100644 --- a/templates/default/documentation.html.ep +++ b/templates/default/documentation.html.ep @@ -409,6 +409,31 @@ FLUSH PRIVILEGES; mysql -uroot vroom < /opt/vroom/docs/database/schema.mysql

+

+ Setup Redis +

+

+ Redis is used to share data between the various workers (when running with hypnotoad) and + pass messages between peers connected on different workers. It doesn't require very specific settings. + You can use this sample configuration: +

+cp -a /etc/redis.conf /etc/redis.conf.default
+cat <<'_EOF' > /etc/redis.conf
+daemonize no
+bind 127.0.0.1
+timeout 0
+loglevel notice
+logfile ""
+databases 16
+save 900 1
+save 300 10
+save 60 10000
+dir /var/lib/redis/
+_EOF
+systemctl start redis
+systemctl enable redis
+

+

Setup Apache

@@ -501,6 +526,13 @@ cp /opt/vroom/conf/settings.ini.dist /opt/vroom/conf/settings.ini
  • password: The password for your database
  • +
  • + redis: The URI to reach your redis server. Exemple redis://127.0.0.1:6379/0 +
  • +
    + Be sure to specify the loopback address as 127.0.0.1 and not localhost + as perl(EV) has an issue when a host is defined for both IPv4 and IPv6 in /etc/hosts (which is the case by default) +