Skip to content
qwest.devChangelogGet Qwest
Self-hosting, step 3 of 4About an hour in all
  1. Get a server
  2. Install Qwest
  3. Let your team in
  4. Keep it running

Public access with a domain

Put Qwest online at your own address, with HTTPS.

2 min read

Give Qwest an address like https://qwest.yourstudio.com that works from any browser, with no VPN. You need this for the community page, player playtests and the Discord bot.

Best for: a VPS. On a PC at home it also works, but needs your router set up (see the end).

Use one you already own, or buy one from a registrar like Porkbun, Namecheap or Cloudflare.

In your registrar’s DNS settings, add a record:

Type Host / Name Value
A qwest Your server’s IPv4 address

This makes qwest.yourstudio.com lead to your server. It can take a few minutes to work.

Caddy is a web server that gets and renews HTTPS certificates by itself. On the server (Ubuntu):

Terminal window
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curl
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
sudo apt update && sudo apt install -y caddy

Open Caddy’s settings:

Terminal window
sudo nano /etc/caddy/Caddyfile

Replace everything in it with (use your address):

qwest.yourstudio.com {
reverse_proxy 127.0.0.1:8080
}

Save, then reload Caddy:

Terminal window
sudo systemctl reload caddy
Terminal window
sudo ufw allow 80
sudo ufw allow 443

If your provider has its own firewall in the dashboard (Hetzner, DigitalOcean, Vultr…), allow ports 80 and 443 there too.

In .env (in your qwest folder):

BETTER_AUTH_URL=https://qwest.yourstudio.com
QWEST_PORT=127.0.0.1:8080

Restart:

Terminal window
docker compose up -d

Open https://qwest.yourstudio.com. The padlock means HTTPS works.

It works the same, plus two things on your network:

  1. Port forwarding: in your router, forward ports 80 and 443 to the PC’s address.
  2. Changing IP: most home connections change IP now and then. Use your registrar’s or router’s dynamic DNS to keep the A record up to date.

If your provider blocks incoming connections (some do), use Tailscale instead.