Add trusted proxy support