api domain in configuration and used in template