Added the option to configure secret and MongoDB URL via environment variables