This guide explains how to deploy Webterm Relay on an Ubuntu server.
- Have a registered domain name (we'll use
relay.example.com
as an example) - Configure DNS to point to your Ubuntu server
We'll use Caddy as the web server for its automatic HTTPS support.
-
Install Caddy
apt-get install caddy
-
Configure Caddy by replacing
/etc/caddy/Caddyfile
with:relay.example.com { reverse_proxy localhost:4200 }
-
Create a systemd unit file at
/etc/systemd/system/webterm-relay.service
:[Unit] Description=webterm-relay After=network.target [Service] Type=simple ExecStart=/usr/bin/webterm-relay Restart=always [Install] WantedBy=multi-user.target
-
Enable the service:
systemctl enable webterm-relay.service
-
Download and install the Relay:
curl -sSfL https://webterm.run/install-relay.sh | bash
(you can also build from source, see Build Instructions doc)
-
Start the Relay service:
systemctl start webterm-relay.service
-
Apply the configuration by restarting Caddy:
systemctl restart caddy
Visit https://relay.example.com/up
in your browser. You should receive a JSON response with status: ok
.
This endpoint can also be used for uptime monitoring.
To connect a Webterm Agent to your relay, use the --relays
option:
webterm-agent --relays relay.example.com
To upgrade the Relay, repeat the "Relay Installation" steps.
That's it!