refactor redis configs a bit to connect properly in different environments