Example: Docker Nextcloud-FPM + Caddy v2 webserver

I’m using this setup but looking at expanding it to include the rewrites as shown here for caddy v1:

Similar to the rewrites in the nginx examples:

Could you expand on your setup to include these rewrites?