MetadataTypesConfig.BaseUrl not changing

I am trying to override the base URL of the Types response so that the baseURL is not the Host name as it is behind a proxy.

Code:

 var NativeTypes = this.GetPlugin<NativeTypesFeature>();
 NativeTypes.MetadataTypesConfig.BaseUrl = "http://mydomain.com";

This is not working while testing. It returns http://localhost:63012 (the URL while debugging).

thanks,
Bob

The Native Types feature always returns the BaseUrl it thinks the Server has, it’s not configurable separately.

If you want your AppHost to use a different BaseUrl you can configure it Application-wide with:

SetConfig(new HostConfig {
    WebHostUrl = "http://mydomain.com"
});