[api,webui] add use_xaccel to support X-Accel-Redirect header for Nginx.
[dist] add example configs for Nginx