I want to make the site accessible online via Ngrok, but when I connect it, I'm redirected to the ba

I want to make the site accessible online via Ngrok, but when I connect it, I’m redirected to the base URL and library.localhost. How do I make it accessible via Ngrok?