replace hardcoded redis host with variable in config file