F-Bar iOS Stats setup

F-Bar provides a basic monitoring for Laravel Forge provisioned servers. The monitoring is done over https and you only have to install a tiny php-script.

SSH connections over mobile connections are very error-prone since the session can be disconnected at any time. The http-protocol, on the other hand, is stateless and made for disconnecting; therefore, I chose to use this method instead.


SSH into your server

Go to a public web directory which is servered over SSL

Run: bash <(curl -s https://installer.laravel-forge-menubar.com/stats_installer.sh)

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/a1291044-2eaa-4e2a-a567-08ff25d27753/CleanShot_2021-05-30_at_17.17.272x.png

Choose a password that will protect your endpoint if someone accidentally discover it

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/2efbc118-2472-4f1f-bf30-2e94ca58798a/CleanShot_2021-05-30_at_17.17.452x.png

The default filename is stats.php but you can choose whatever you like.

In F-Bar iOS: tap the monitor button

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/7ac7ce45-84bd-4607-8212-773466187fff/IMG_5148.png

Add the URL and password to the script. URL and you are done

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/40ff7dd2-a06e-4e61-a7f7-78205ed7e1c9/IMG_5150.png

Validate the URL and you should get a positive response.