move redis config to environment variables