Do you have some custom configuration? Or something doesn't work as it should?
In simple typical configuration, where you have a web server like nginx which handles http connections and host names your app is accessible by, you don't need to set the trustHosts setting at all.
For local development you surely don't need to touch that setting.
When it comes to releasing to production, you most likely will not need it too.
You need it when a web server is out of your control and you don't want your app to respond to something like https://12.34.56.78 (public IP address of your server).