restx mode read from env variables