This page is in English — onze technische documentatie voor ontwikkelaars en beheerders is in het Engels.

Relay Laatst gecontroleerd:

Relay Operations and Maintenance

Managing logs, automated backups, software upgrades, certificate lifecycles, and health checks for Viaalink Relay.

Overview

This guide covers operational best practices for maintaining Viaalink Relay in production, including log management, backup routines, upgrade procedures, and certificate renewal.


Logging and privacy

Viaalink Relay is designed with privacy-first logging defaults suitable for GDPR and enterprise compliance.

Structured JSON logging

By default, the server writes structured JSON logs to standard output:

json

Enable or toggle JSON logging via --log-json=true or in config.yml:

yaml

Log rotation

To output logs to a dedicated file with automated size and age rotation:

yaml

IP anonymization

To protect end-user and visitor privacy:

  • IP hashing (--log-hash-ips=true): Incoming IPv4 and IPv6 client addresses are replaced by a keyed hash (a key per Relay, 16 hex characters) before being written to logs.
  • Username masking (--log-usernames=false): Usernames in log records are replaced by a keyed hash, so two logins can still be told apart without showing the name.

Backup and recovery

All state required to restore a Viaalink Relay instance lives in its persistent data directory.

Persistent data folder contents

The data folder contains the following essential assets:

PathPurposeCriticality
keys/Server SSH private host keysEssential (avoids host key mismatch warnings on clients)
pubkeys/Approved client SSH public keysEssential (restores client access permissions)
ssl/Custom or cached TLS certificatesHigh (restores active HTTPS certificates)
license/Activated license.jwt file, instance-key.pem, and setup-token.txtHigh (restores paid plan, instance identity, and dashboard access code)
config.ymlServer configuration settingsHigh (restores port mappings and policies)

Backup procedure

Create a compressed tar archive of your persistent data folder:

On Linux

bash

On Docker Compose

bash

On ASUSTOR NAS

In ADM File Explorer, locate the shared folder viaalink-relay-data, right-click, and select Compress, or schedule an automated backup using ADM Backup & Restore.

Settings › Backup exports your settings as relay.yaml with no private keys, host or instance keys, passwords or license. It does include the approved device public keys. Import shows a preview first. It does not replace a backup of the data folder.

Recovery procedure

To restore a Relay instance onto a new server:

  1. Install the viaalink-relay binary or container on the new machine.
  2. Stop the Relay service:
    bash
  3. Extract the backup archive to the target location:
    bash
  4. Start the Relay service:
    bash
  5. Because a license is bound to the machine it is activated on, re-activate your license after restoring onto new hardware (or move the license in your account at viaalink.com/account). Connecting clients will then reconnect automatically without SSH host key warnings.

Software upgrades

Linux systemd installations

Standalone Linux binaries (amd64, arm64, and armv6 for Raspberry Pi Zero / 1) are publicly available from GitHub Releases.

Release archives include the binary along with the templates/ and deploy/ directories. Keep templates/ in the working directory of the service (e.g. /var/lib/viaalink-relay/templates), or next to the binary only if you start the Relay from that directory. Moving only the binary without the templates directory causes the Relay to crash on start.

When replacing an existing installation with a newer release:

  1. Extract the release archive to a temporary directory:
    bash
  2. Stop the service:
    bash
  3. Copy the updated binary and templates into place:
    bash
  4. Start the service:
    bash

Docker Compose installations

Pull the new image from ghcr.io/viaalink/relay and recreate the containers:

bash

On Synology or QNAP, see Updating for the steps in Container Manager and Container Station.

ASUSTOR NAS installations

  1. In ADM App Central, find Viaalink Relay and install the update when a newer version is listed.
  2. ADM updates the application while leaving the viaalink-relay-data shared folder intact.

Settings changes and restarts

The dashboard described here is in Relay v1.36.0 and later, and in the ASUSTOR package 0.62.7 and later.

Settings changes made through the dashboard that require a restart show a restart bar at the top: Restart now, Tonight at 03:00, or Undo. Restart now stops the Relay, and the supervisor you run it under (systemd, Docker’s restart policy, or the launchd agent) starts it again.


Certificate lifecycle and DNS-01

Viaalink Relay automates TLS certificate provisioning and renewals via Let’s Encrypt.

Automatic renewal

  • Certificates are renewed automatically before expiration by Caddy or the built-in ACME manager.
  • For standard HTTP-01 challenges, ensure port 80 is forwarded to the server.
  • For DNS-01 wildcard certificates, credentials for one of the five supported DNS providers must be configured using the exact environment variables expected by the server:
    • Porkbun (PORKBUN_API_KEY, PORKBUN_API_SECRET_KEY)
    • Cloudflare (CLOUDFLARE_API_TOKEN)
    • Route53 (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION)
    • DigitalOcean (DIGITALOCEAN_API_TOKEN)
    • GoDaddy (GODADDY_API_TOKEN)

Per-domain certificate mode

When serving multiple domains using --bind-hosts, configure the certificate policy per domain:

  • dns: Requests certificates using DNS-01 challenge via your provider’s API. A wildcard certificate is requested only with +wildcard.
  • http: Obtains single-host certificates using standard HTTP-01 challenge on port 80.
  • none: Requests no public certificate, serving plain HTTP on port 80 with no redirect. Ideal when an upstream load balancer or reverse proxy terminates TLS.

Verifying health

Viaalink Relay does not provide a dedicated HTTP health endpoint. Operating health is verified through two distinct checks:

  1. SSH listener responsiveness: Confirm port 2222 accepts TCP connections:
    bash
  2. Dashboard responsiveness: Confirm the management interface loads at /_relay/dashboard:
    • Linux / Docker: http://<server-ip>:8080/_relay/dashboard or https://relay.example.com/_relay/dashboard
    • ASUSTOR NAS: the ADM desktop tile opens https://<host>:443/_relay/dashboard (with a public certificate over EZ-Connect, or an internal certificate warning on the LAN IP). Port 28080 is used by the package for UPnP dashboard mapping and the ADM reverse proxy.