We served Laravel routes from a Go binary on Laravel Cloud
It works on both web servers Cloud uses for PHP. The binary runs in the same container as the web server, so a proxy rule on loopback is enough. On Nginx we replaced Cloud's generated server config from the build command, which only works because of file permissions in the build image. On Octane, one setting in config/octane.php puts a reverse proxy ahead of PHP in Cloud's Caddyfile. That one looks more durable.
Read the experiment