diff --git a/conf/settings.ini.dist b/conf/settings.ini.dist index 28f3915..5e7835d 100644 --- a/conf/settings.ini.dist +++ b/conf/settings.ini.dist @@ -3,8 +3,8 @@ ;dsn = 'DBI:mysql:database=devroom;host=localhost' ;user = 'vroom' ;password = 'password' -; Redis server -;redis = 'localhost:6379' +; Redis server URI +;redis = 'redis://127.0.0.1:6379' [turn] ; The stun server sent to client. You can set it to your own stun server. Takes a comma separated list of full diff --git a/lib/Vroom/Conf.pm b/lib/Vroom/Conf.pm index ca170b4..54bf99a 100644 --- a/lib/Vroom/Conf.pm +++ b/lib/Vroom/Conf.pm @@ -17,7 +17,7 @@ sub get_conf(){ $config->{'database.dsn'} ||= 'DBI:mysql:database=vroom;host=localhost'; $config->{'database.user'} ||= 'vroom'; $config->{'database.password'} ||= 'vroom'; - $config->{'database.redis'} ||= 'localhost:6379'; + $config->{'database.redis'} ||= 'redis://127.0.0.1:6379/'; $config->{'signaling.uri'} ||= 'https://vroom.example.com/'; $config->{'turn.stun_server'} ||= 'stun.l.google.com:19302'; $config->{'turn.turn_server'} ||= undef;