The domain property is a standard fully qualified domain name without any schemes or paths attached, including any trailing slashes. Misconfiguring this property will cause hard-to-diagnose problems in many of the core features of Invidious.
To improve user experience it should at least warn (or maybe error) when the domain name appears to be misconfigured.