Show HN: Tspages – static site hosting platform for your Tailscale network
1 points
by 9dev
1 hour ago
| 0 comments
| github.com
| HN
Hey HN! This is a small side project I'm currently working on. With tspages, you can quickly host static websites on arbitrary hostnames in your tailscale network. This is useful for internal documentation or tools that don't warrant their own server or k8s deployment, for example. I was frustrated with the other options - hosting on one of the public providers like Cloudflare Workers or Vercel means having to lock down auth and hope you never screw that up; hosting on an internal web server means you can't have speaking Tailnet names.

So this is kind of a middle ground: tspages let's you create new static websites very easily, say `design-system.funky-animal.ts.net`: Simply drag-and-drop a folder, archive, or file or send it with curl, and the site will be up in a second. Deployments are archived, and you can easily switch to an older deployment via API or UI.

Since tailscale requests carry identity, tspages checks authorization to create, deploy, or view sites against your tailnet policy: You can use an app capability to create different permissions for users or tags. This also allows for some very basic analytics for hosted sites.

Finally, tspages allows to upload a config file alongside your assets to set some configuration parameters for the site, like enable SPA fallback routing, custom headers, or redirection targets.

This project is very young, so there might be some rough edges, but it does work, runs stable, and the capability system is sound. Let me know what you think!

No one has commented on this post.