Set metadata IP in Keycloak config

I’m using keycloak with keystone, and my controllers don’t have public IPs. So, if I set the keystone OIDCProviderMetadataURL to the public IP, the controllers can’t pull the metadata. If I set it to the private IP, then they can pull the metadata, but all of the urls in the metadata point to 192.x, and the browser can’t get to them. How can I configure keycloak to return a specific IP in the metadata regardless of which IP it is pulled from?