This is a backend API to be paired with Uptime VueJS (or what ever else you want to use it for).
This repository implements:
You can try it out at https://uptime.tysonmccarney.com/
- PHP ^8.3
composer install
php artisan migrate
Some things to make note of while populating your .env:
- Laravel Sanctum requires your SPA and backend to share the same domain. Ex: app.example.com & api.example.com
- Make sure your SESSION_DOMAIN value allows session cookies to be valid for both domains
APP_URL=https://api.my-domain.com
APP_SPA_URL=https://app.my-domain.com
SANCTUM_STATEFUL_DOMAINS=app.my-domain.com
SESSION_DOMAIN=.my-domain.com
To start the uptime and certificate checks, create a cron job to run the scheduler:
php artisan schedule:run
Currently supports:
- Slack Webhooks
- Discord Webhooks
MIT