I still don’t understand why you think using an XFF header in the '<arbitrary_external_server_address>, $proxy_add_x_forwarded_for' format satisfies the standard way if it assumes the '<client>, <proxy1>, <proxy2>' format.if there was no NAT in front of the nginx, the external address of the plugin would also not be included in this header
Maybe the os-caddy plugin fits your needs.