add DOMAIN setting in tpl