Address translation from local service addresses into public service addresses can be configured for each location configured for the Border Gateway (BGW) HTTP proxy.
Assume your BGW HTTP proxy configuration looks like this with key
This will make the BGW HTTP Proxy analyze each HTTP response and translate HTTP URLs like this:
- Location known to BGW:
- Location unknown to BGW:
aHR0cDovL3NvbWVfc2VydmljZTo4MDgxis the Base64-encoded local service address. When the translated link is addressed, Border Gateway will forward the request to the local service.
- BGW will respect an existing
x-forwarded-hostHTTP header and use this for the translation.
You can define an array of addresses for whitelisting (including wildcards), e.g.
Addresses including host and port
iot-linksmart-melon.iot:8080 as well as including any domain
*.linksmart.eu will not be translated.
URL Translation map
For non-HTTP URLs you can define a translation map like this:
This will obviously translate
ssl://demo.linksmart.eu:8883. For URLs configured in the translation map whitelisting is ignored.