Limit self-registration to certain domains

Ist it possible to limit self-registration on self-hosted server to certain domains, e.g. with a certain environment variable?

I couldn’t find a list of all possible environment variables in the docs