Skip to content

VPS

This page will guide you through the process of hosting smallweb on a VPS. Any VPS provider will work, but if you're looking for a recommendation, I had a good experience with Hetzner.

If you prefer a video tutorial, just click on the image below.

video thumbnail

Installation

To install smallweb on a new VPS, just use the installation script:

bash
curl -sSL https://install.smallweb.run/vps.sh | sh

You'll smallweb instance will be accessible through a sslip.io domain. No need to configure DNS records to get started!

Wire your own domain

If your domain is example.com, you'll need to set the following DNS records:

  • A record for example.com pointing to your server's IPV4 address.
  • AAAA record for example.com pointing to your server's IPv6 address.
  • A record for *.example.com pointing to your server's IPV4 address.
  • AAAA record for *.example.com pointing to your server's IPv6 address.

Then update the domain field from the .smallweb/config.json file to example.com.

json
{
    "domain": "example.com"
}