jartaud / uptime-backend-api

Website Uptime & Certificate Monitoring API built using Laravel.

Home Page:https://uptime.tysonmccarney.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Website Uptime & Certificate Monitoring API

run-tests

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/

Requirements

  • PHP ^7.4|^8.0

Installation

composer install

php artisan migrate

Some things to make note of while populating your .env:

  1. Laravel Sanctum requires your SPA and backend to share the same domain. Ex: app.example.com & api.example.com
  2. 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

Notification Channels

Currently supports:

  • Email
  • Slack Webhooks
  • Discord Webhooks

License

MIT

About

Website Uptime & Certificate Monitoring API built using Laravel.

https://uptime.tysonmccarney.com

License:MIT License


Languages

Language:PHP 99.3%Language:Shell 0.5%Language:Blade 0.2%