Docs / Start here

Getting started

This guide takes you from nothing to a status page with a monitor, a component and an incident on it. It takes about fifteen minutes. Every setting mentioned here is described in configuration.

Just trying it? One command starts yasp with SQLite, an encryption key it makes itself, and email sign-in; the second prints a sign-in link:

docker run -d --name yasp -p 8080:8080 -v yasp-data:/data -e YASP_EMAIL_LOGIN__ENABLED=true ghcr.io/yasp-dev/yasp
docker exec yasp yasp admin invite --email you@example.com --role admin

The rest of this guide sets yasp up properly. It needs three things: a public address (base_url), a database, and an encryption key. Sign-in for the dashboard is a fourth, and you'll want it straight away.

# 1. Install

All install routes run the same program with the same settings, so you can switch later without losing anything.

# Docker

docker pull ghcr.io/yasp-dev/yasp

The image listens on 0.0.0.0:8080 and keeps its SQLite database at /data/yasp.db, so mount a volume on /data. Images are published for linux/amd64 and linux/arm64. If you want SAML sign-in, use ghcr.io/yasp-dev/yasp-saml instead: it's the same server with SAML added (see SAML sign-in).

# Compose

deploy/compose/sqlite.yml runs yasp on SQLite, with an optional remote probe:

cp deploy/compose/.env.example deploy/compose/.env    # then fill in the key (step 2)
docker compose -f deploy/compose/sqlite.yml up -d

All settings go in .env as environment variables.

# Static binary

Linux binaries for x86_64 and aarch64 are attached to every release. They need no other libraries.

curl -fLo yasp https://github.com/yasp-dev/yasp/releases/latest/download/yasp-$(uname -m)-unknown-linux-musl
chmod +x yasp && sudo mv yasp /usr/local/bin/

Check the download against SHA256SUMS in the release, or verify its signature as described in verifying a release. A systemd unit is in deploy/systemd: it runs yasp --config /etc/yasp/yasp.toml serve. The binaries don't include SAML.

# From source

cargo build --release -p yasp     # the binary is target/release/yasp

See building for the toolchain, the SAML feature and building the images.

# 2. Generate the encryption key

yasp encrypts the secrets you give it (the SMTP password, webhook secrets, certificate keys) before it stores them. Generate a key:

yasp keys generate
# or: docker run --rm ghcr.io/yasp-dev/yasp keys generate

It prints a block ready to paste into yasp.toml:

[[encryption.keys]]
id = "k1"
key = "base64:…"

Back it up now, somewhere other than your database backups, such as a password manager or secrets store. Backups don't contain the key. Without it, a restored database starts but its stored secrets can't be read. yasp also refuses to start against a database that was set up with a different key.

# 3. Write the configuration

Settings come from a yasp.toml file, from YASP_ environment variables, or both. A minimal file:

base_url = "https://status.example.com"

[database]
url = "sqlite:///var/lib/yasp/yasp.db"

[[encryption.keys]]
id = "k1"
key = "base64:…"

base_url is the address people use to reach yasp. It goes into links in emails, feeds, probe commands and sign-in redirects, so set it to the real public address, not localhost, once you go beyond trying it out.

The database. SQLite is the default choice: one file, nothing else to run, and it creates the file if it's missing. Use Postgres 15 or newer (postgres://user:pass@host/yasp) when you want to run more than one instance (see high availability) or already run Postgres. yasp creates its tables on startup either way.

Check the file before you start:

yasp --config yasp.toml check-config

# 4. Choose how you sign in

The status page works without sign-in. The dashboard at /admin stays off until you set up at least one way to sign in. You can combine them.

OpenID Connect, for Keycloak, Authentik, Okta, Entra ID, Google and others. Register yasp at your identity provider with the redirect URI https://status.example.com/admin/auth/callback, then:

[oidc]
issuer = "https://idp.example.com/realms/main"
client_id = "yasp"
client_secret = "…"
[oidc.role_map]
admin = ["yasp-admins"]

People in the yasp-admins group become admins. The roles are admin, editor and viewer.

SAML 2.0, with the yasp-saml image or a SAML build. See SAML sign-in.

Email links, without an identity provider. People you invite sign in with a one-time link:

[email_login]
enabled = true

Normally the link is emailed, but you have no mail server set up yet. Create the first admin from the command line instead; it prints a link valid for 15 minutes:

yasp --config yasp.toml admin invite --email you@example.com --role admin
# in Docker: docker exec yasp yasp admin invite --email you@example.com --role admin

In Docker, set YASP_EMAIL_LOGIN__ENABLED=true instead (yasp 0.1.2 or later; earlier versions only read it from the file).

Bootstrap admins. With OIDC or SAML, you may not have an admin group yet. List your address and you become admin when you sign in with it, as long as the identity provider says the address is verified:

[bootstrap]
admin_emails = ["you@example.com"]

# 5. Start yasp

With the binary:

yasp --config yasp.toml serve

It applies database migrations, then serves on 127.0.0.1:8080. Set listen to change that, e.g. listen = "0.0.0.0:8080".

With Docker, pass settings as environment variables. __ separates nested names, and lists are written TOML-style:

docker run -d --name yasp -p 8080:8080 -v yasp-data:/data \
  -e YASP_BASE_URL=http://localhost:8080 \
  -e 'YASP_ENCRYPTION__KEYS=[{id="k1",key="base64:PASTE_YOUR_KEY_HERE"}]' \
  -e YASP_OIDC__ISSUER=https://idp.example.com/realms/main \
  -e YASP_OIDC__CLIENT_ID=yasp \
  -e YASP_OIDC__CLIENT_SECRET=… \
  -e 'YASP_BOOTSTRAP__ADMIN_EMAILS=["you@example.com"]' \
  ghcr.io/yasp-dev/yasp

Or mount a file: add -v ./yasp.toml:/etc/yasp/yasp.toml:ro -e YASP_CONFIG=/etc/yasp/yasp.toml. Environment variables still override what's in it.

Open base_url. The status page is at /, the dashboard at /admin.

# 6. Try it with sample data (optional)

To look around before you set anything up yourself:

yasp --config yasp.toml demo-seed
# in Docker: docker exec yasp yasp demo-seed

It adds monitors that check this yasp server itself, components with history, incidents, maintenance and a second page. Running it again skips what already exists. For a public, read-only demo install, see running a public demo.

# 7. Your first monitor, component and incident

Sign in at /admin.

  1. Add a monitor. Go to Monitors → Add monitor and pick what to watch, e.g. Website or API. Give it a name ("Website") and a URL to check. Use Test now to run the check once before you save it.
  2. Put it on the page. On the status page starts at Show as a new component with this name. Leave it, or pick an existing component to make the monitor part of it. Click Start monitoring.
  3. Look at the component. Under Components, open the new component. Here you can change the Name shown on the status page, add a Public description, put it in a Group on the status page, and choose which Monitors drive it. Click Save changes.
  4. See it on the page. Open / (or Public page in the dashboard menu). The component shows its status and an uptime bar that fills in as checks run. If the monitor fails, the component follows.
  5. Post an incident. Go to Incidents → New incident. Write a Title, choose a Status (investigating, identified, monitoring) and an Impact, write a Message, and tick the Affected components. With Publish now on, it appears on the page as soon as you click Save incident. Open it under Incidents and use Post an update as things change; set the new status to resolved when it's over.

More in monitors, status pages and incidents.

# 8. HTTPS

Put yasp behind a reverse proxy or load balancer that terminates TLS, or let yasp serve HTTPS itself with automatic certificates for base_url and every custom domain. See HTTPS and custom domains. Behind a proxy, list its addresses in [server] trusted_proxies so yasp sees visitors' real addresses.

# 9. Check from more places

The built-in probe checks from where yasp runs. To check from other regions, or hosts inside a private network, run yasp-probe there. It only connects out to yasp. See probes.

# Next steps

  • Set up email delivery under Notifications → Email delivery, so invites, alerts and subscriber updates can be sent. Then invite people from Users.
  • Send alerts to your team: notifications.
  • Back up the database with yasp backup <file>, and keep the encryption key elsewhere: operations.
  • Automate with the REST API: API.
  • Learn what happens between a failed check and a red component: how it works.