Sign inSign up

eirsyl/statuspage

By eirsyl

Updated over 8 years ago

Statuspage written in golang!

Image
0

100K+

eirsyl/statuspage repository overview

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.

NameDescription
API_TOKENThis is the token clients should use to access the API (AUTHORIZATION header)
POSTGRES_ADDRESSThe address of the postgres instance
POSTGRES_USERThe postgres username for authorization
POSTGRES_PASSWORDThe postgres password for authorization
POSTGRES_DBThe postgres db name
SITE_OWNERThe owner of the side, visible in page title
SITE_COLORThe background color applied on the header element
SITE_LOGOCustom 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

Tag summary

Content type

Image

Digest

Size

302.7 MB

Last updated

over 8 years ago

docker pull eirsyl/statuspage