Currently you've to pass build time flags[1] to modify the endpoint.
Providing an option in-app to change the endpoint is under discussion[2].
[1]: https://github.com/ente-io/ente/blob/main/server/RUNNING.md#...
[2]: https://github.com/ente-io/ente/discussions/504