{
    frankenphp
    auto_https off
    admin off
}

:80 {
    root * /var/www/html/public

    encode zstd br gzip

    # Access logs are noise here: the proxy sidecar already records requests,
    # and errors still reach stderr through the default logger.
    log {
        output discard
    }

    # Encore hashes every filename under /build, so a cached copy can never be
    # the wrong one.
    @built path /build/*
    header @built Cache-Control "public, max-age=31536000, immutable"

    @hidden {
        path /.*
        not path /.well-known/*
    }
    respond @hidden 404

    php_server
}
