[backend] new config option to define the public frontend api endpoint