I copied the config from Pleroma upstream.
https://git.pleroma.social/pleroma/pleroma/src/branch/develop/installation/pleroma-mediaproxy.nginx#L85-L96
It still needs to communicate with the Elixir backend, but the content caching is handled by nginx.
