How to proxy Plausible analytics?

This does not work:

reverse_proxy /js/script.js https://plausible.io/js/plausible.outbound-links.js
reverse_proxy /api/event https://plausible.io/

It throws this error:

for now, URLs for proxy upstreams only support scheme, host, and port components