Try tools.proxy config setting:
'tools.proxy.on': True,
Additionally you may need
'tools.proxy.local': 'X-Forwarded-Host',
Set to appropriate header. When using NGINX, the header would be
'tools.proxy.local': 'Host',
In case of Lighttpd this header will be appropriate:
'tools.proxy.local': 'X-Host'