From 372171fb86ec1928b18a0cfbf0c847abc25bd6e0 Mon Sep 17 00:00:00 2001 From: Alvie Rahman Date: Thu, 29 Jul 2021 08:43:06 +0100 Subject: [PATCH] Add installation instruction, systemd service file --- gohookr.service | 6 ++++++ readme.md | 11 +++++++++++ 2 files changed, 17 insertions(+) create mode 100644 gohookr.service diff --git a/gohookr.service b/gohookr.service new file mode 100644 index 0000000..d505b94 --- /dev/null +++ b/gohookr.service @@ -0,0 +1,6 @@ +[Unit] +Description=A really simple webhook receiver. +After=network.target + +[Service] +ExecStart=/service/alvps/gohookr diff --git a/readme.md b/readme.md index 9c7921e..15ef319 100644 --- a/readme.md +++ b/readme.md @@ -9,6 +9,17 @@ Default config path is `/etc/gohookr.conf` and can be overriden by setting envir Check below for an example configuration. +## Installation + +After you [install go](https://golang.org/doc/install): + +``` +go mod tidy +go build +cp gohookr /usr/local/bin/ +cp gohookr.service /usr/lib/systemd/system/ +``` + ## Signature Verification Signature verificaiton is done using SHA256 HMACs.