statuspage

command module
v0.0.0-...-376c70d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2018 License: MIT Imports: 9 Imported by: 0

README

Statuspage

Self hosted status page written in golang!

This is a small status page project with Postgres as the backing datastore. There should be no need to change the go code to customize the page. We use environment variables for configuration, this also includes the logo.

Dashboard

Configuration

We use environment variables to configure the service. The table bellow contains all variables you can use.

Name Description
API_TOKEN This is the token clients should use to access the API (AUTHORIZATION header)
POSTGRES_ADDRESS The address of the postgres instance
POSTGRES_USER The postgres username for authorization
POSTGRES_PASSWORD The postgres password for authorization
POSTGRES_DB The postgres db name
SITE_OWNER The owner of the side, visible in page title
SITE_COLOR The background color applied on the header element
SITE_LOGO Custom logo, served from another site or local path inside the static folder

API request examples

Create new service

curl -H "Authorization: 123" -v -d '{"Group":"External API","Enabled": true, "Name": "User API", "Status": "Operational", "Description": "User API for customers"}' -H "Content-Type: application/json" -X POST http://localhost/api/services

Create new incident

curl -H "Authorization: 123" -v -d '{"time": "2018-01-01T13:50:00-08:00", "status":"Identified", "message":"oh no! i am broken", "Title":"User API is down"}' -H "Content-Type: application/json" -X POST http://localhost/api/incidents

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
src

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL