We're in the process of moving things to HubSpot, but we would very much like to keep current URL structure intact. That means hosting the blog on domain/blog, the knowledge center on domain/help etc.
To do this I'm setting up proxy forwarding in nginx and rewriting the content to replace the internal HubSpot domain with our own. That works OK, except for a few things like clicking on search results will redirect you to internal URLs.
I found a few topics on here regarding the same thing Proxying to Hubspot web pages, landing pages, etc, and @dadams mentions that HubSpot might block the proxy server if it sends to many requests. However, the question about X-Forwarded-For is never answered.
Is there a smart and future proof way of doing this?