modify config for template url, for https and http