DocumentationFundamentals
Autostart (Windows)
Learn how to configure background service so that Webhook Relay agent connects on Windows server startup
Prerequisites
- Windows machine
- Webhook Relay account
Install relay client
Open PowerShell:
Download and install the relay client:
iwr https://my.webhookrelay.com/webhookrelay/downloads/install-cli.ps1 -useb | iex
You should see the following output:
Now, create a file config
in the C:\ProgramData\WebhookRelay directory:
With contents (get your key and secret from here):
version: "v1"
key: your-secret-key # will be encrypted on startup
secret: your-secret # will be encrypted on startup
buckets:
- windows-bin
Then, install and start the service:
relay service install -c 'C:\ProgramData\WebhookRelay\config.txt'
The agent is now installed and will be run after a system reboot.
To restart the service (if you change the configuration file):
relay service restart
Troubleshooting
- To view the logs:
relay service install -c C:\ProgramData\WebhookRelay\config.txt --logs-output C:\ProgramData\WebhookRelay\relay.log
- If the service is not starting, check the logs in
C:\ProgramData\WebhookRelay\relay.log