Auto-start
Configuring relay CLI to auto-start as a background service.
Webhook Relay agent can run in the background and be managed by the operating system on Linux, Windows and MacOS. To start using the background service, first get the CLI following installation instructions.
Configuration file
When running as a background service, agent needs a configuration file. It’s a simple yaml
format file.
For this file, you will need to:
generate access token key and secret.
create a tunnel if you need bidirectional tunnels (optional)
create a bucket if you are going to use one-way webhook forwarding (optional)
Create a file `/etc/relay/config.yaml`
If no tunnels or no buckets are defined, that part of the relay service will be disabled. If no buckets and tunnels are specified, relay service will not start.
Note that you can subscribe to tunnels and buckets even before you have created them through the API/CLI/UI.
Once the relay service starts, key and secret will be encrypted.
Linux
Tu install the service, you will need to use sudo
and provide a full path to relay configuration file:
To specify credentials during install:
Restart
To restart the service (if you change the configuration file
Uninstall
To uninstall the service:
To view service logs, use journalctl
:
Windows
Make sure you have download relay CLI and created a config.yaml file.
If you are using Powershell:
You can also just keep the config.yaml file in the same directory as relay
exe file. Then, you just need to do:
The agent is now installed and will be run after a system reboot.
To specify credentials during install:
Restart
To restart the service (if you change the configuration file):
Uninstall
To uninstall the service:
MacOS
Execute as the user who will run the agent:
To specify credentials during install:
Restart
To restart the service (if you change the configuration file):
Uninstall
To uninstall the service:
Note: The service needs to be installed from the Terminal by running its GUI interface as your current user. Only then will you be able to manage the service.
Using different region
By default agent connects to EU region. If you are using other region, specify it in the configuration:
Logging
Usually logs can be viewed through journalctl
:
If you are using a Windows machine, then it’s useful to specify a log output location during install:
You can also specify logging level and output file in the configuration:
Upgrade process
If the executable has write permissions, then to update it you only need to restart the service. Otherwise, follow these steps:
Stop the service and uninstall it.
Download the new binary following installation instructions for your platform.
Install and start the service.
HTTP Proxy settings
Relay can use HTTP proxy to open the tunnel:
Using with self-hosted Transponder
If you host an instance of Webhook Relay yourself (Transponder), add additional values to specify the server APIs:
Last updated