Update the caddyfile
Caddy v2 is out, and the caddyfile seems to not work anymore: https://caddyserver.com/docs/v2-upgrade#caddyfile
This is my current attempt, but I get a 502 Bad Gateway, I think I am missing something:
# default Caddyfile config for Pleroma
domain {
log {
output file /var/log/caddy/pleroma.json
}
encode gzip
# this is explicitly IPv4 since Pleroma.Web.Endpoint binds on IPv4 only
# and `localhost.` resolves to [::0] on some systems: see issue #930
reverse_proxy / 127.0.0.1:4000
}