[3.8] Add trusted proxies configuration

@nlegoff ready for review