From 9979072c1301f526bec68d921c336fdb283f55c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Sun, 11 Sep 2016 13:49:10 +0200 Subject: [PATCH] Config redis Le provisionning ajoute un mot de passe sur le serveur redis --- cof/settings_dev.py | 3 ++- provisioning/bootstrap.sh | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cof/settings_dev.py b/cof/settings_dev.py index 54797fc5..c63437a5 100644 --- a/cof/settings_dev.py +++ b/cof/settings_dev.py @@ -175,12 +175,13 @@ CHANNEL_LAYERS = { "default": { "BACKEND": "asgi_redis.RedisChannelLayer", "CONFIG": { - "hosts": [("redis://:password_redis@127.0.0.1:6379/0")], + "hosts": [("redis://:redis_password@127.0.0.1:6379/0")], }, "ROUTING": "cof.routing.channel_routing", } } + def show_toolbar(request): """ On ne veut pas la vérification de INTERNAL_IPS faite par la debug-toolbar diff --git a/provisioning/bootstrap.sh b/provisioning/bootstrap.sh index 304d8cd0..b6df6caa 100644 --- a/provisioning/bootstrap.sh +++ b/provisioning/bootstrap.sh @@ -23,6 +23,7 @@ mysql -uroot -p$DBPASSWD -e "CREATE DATABASE $DBNAME; GRANT ALL PRIVILEGES ON $D # Installation de redis-server. Todo: lui mettre un mot de passe apt-get install -y redis-server +redis-cli config set requirepass redis_password # Mise en place du .bash_profile pour tout configurer lors du `vagrant ssh` cat > ~vagrant/.bash_profile <