forked from DGNum/gestioCOF
Config redis
Le provisionning ajoute un mot de passe sur le serveur redis
This commit is contained in:
parent
7fab931520
commit
9979072c13
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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 <<EOF
|
||||
|
|
Loading…
Reference in a new issue