# Tspages

Tspages is a lightweight static site hosting platform for your Tailscale network. It is open source and self-hosted, installable on TrueNAS.

Canonical page: https://ourlocalhost.com/app/9321/tspages

## Description

tspages is a lightweight static site hosting platform for your Tailscale network. Sites are served on their own HTTPS tailnet hostnames with automatic TLS, access controlled via Tailscale application grants.

## Platform availability

Available on 1 of 10 platforms: TrueNAS.

## Health score

40/100 (Fair), based on 3 of 4 factors.
- Maintained: 72 (last commit 1 day ago)
- Popular: 0 (0 GitHub stars)
- Easy to install: 25 (1 install platform, install notes)

## Links

- TrueNAS: https://apps.truenas.com/catalog/tspages/
- GitHub: https://github.com/wnagele/tspages

## Common questions

### What kind of Tailscale auth key does tspages need?

You need a reusable auth key tagged with `tag:pages` (or a tag of your choosing), created in the Tailscale admin console under Settings > Keys. It must be reusable because tspages registers multiple devices with the same key.

### How do I grant tailnet users access to tspages?

Add a grant in the Tailscale admin console's Access Controls, pointing from your members to the `tag:pages` destination on port 443 with the `tspages.mazetti.me/cap/pages` capability. Start with `admin` access and narrow permissions later.

### How do I deploy a site to tspages?

Upload a ZIP or tarball of your static site, or even a single Markdown file, and it goes live immediately. You can also drag and drop a folder onto the admin dashboard to deploy.

### Where does tspages store its data, and how should I persist it in Docker?

The Docker container stores state in `/state` and site data in `/data`; mount volumes like `tspages-state:/state` and `tspages-data:/data` to persist them.

### Can I configure redirects, 404 pages, or SPA routing per site?

Yes, include an optional `tspages.toml` in your upload to customize 404 pages, headers, redirects, and SPA routing per deployment. Run `tspages init` to generate an annotated template.

---
Source: Our Local Host (https://ourlocalhost.com/app/9321/tspages), the self-hosted and open-source app directory.
