added configuration for internal and external domains