aboutsummaryrefslogtreecommitdiff
path: root/bin/hook/etc
diff options
context:
space:
mode:
Diffstat (limited to 'bin/hook/etc')
-rw-r--r--bin/hook/etc/webhook.conf4
-rw-r--r--bin/hook/etc/webhook.service6
2 files changed, 3 insertions, 7 deletions
diff --git a/bin/hook/etc/webhook.conf b/bin/hook/etc/webhook.conf
index 34c2929..69c5842 100644
--- a/bin/hook/etc/webhook.conf
+++ b/bin/hook/etc/webhook.conf
@@ -9,10 +9,6 @@
"pass-environment-to-command": [{
"source": "string",
- "envname": "DEPLOY_HTDOCS_PATH",
- "name": "/data/www/example.com/htdocs"
- }, {
- "source": "string",
"envname": "DEPLOY_REPO_DIR",
"name": "/data/www/example.com/git"
}, {
diff --git a/bin/hook/etc/webhook.service b/bin/hook/etc/webhook.service
index 20cd6bb..006fa35 100644
--- a/bin/hook/etc/webhook.service
+++ b/bin/hook/etc/webhook.service
@@ -4,11 +4,11 @@ After=network.target
ConditionPathExists=/etc/webhook.conf
[Service]
-# debian/ubuntu version of webhook is comically old, so i'm using the static
-# binary from the github releases page
+# use -verbose to enable debugging
# ExecStart=/usr/local/bin/webhook -port 9000 -hooks /etc/webhook.conf -urlprefix '' -verbose
ExecStart=/usr/local/bin/webhook -port 9000 -hooks /etc/webhook.conf -urlprefix ''
-RunAs=webhook
+
+User=webhook
[Install]
WantedBy=multi-user.target