This is an updated Caddy file for Flarum 0.1.0-beta.8
www.example.com {
root /var/www/flarum/public
rewrite {
to {path} {path}/ /index.php
}
fastcgi / /var/run/php/php7.2-fpm.sock php
header /assets {
+Cache-Control "public, must-revalidate, proxy-revalidate"
+Cache-Control "max-age=25000"
Pragma "public"
}
gzip
}
This configuration does not require any special caddy extensions and works perfectly.