[#54] Correctly get the domain from configs