Try to make up config automatically from env