20 lines
493 B
YAML
20 lines
493 B
YAML
---
|
|
## Weblug example config
|
|
|
|
settings:
|
|
bind: ":2088"
|
|
|
|
# hook definition. A hook needs to define the HTTP endpoint ("route") and the
|
|
# command that will be executed, once this route is executed
|
|
hooks:
|
|
- name: 'hook one'
|
|
route: "/webhooks/1"
|
|
command: "sleep 5"
|
|
background: True # Terminate http request immediately
|
|
- name: 'hook two'
|
|
route: "/webhooks/2"
|
|
command: "sleep 2"
|
|
- name: 'hook 3'
|
|
route: "/webhooks/data/3"
|
|
command: "/srv/fetch-new-data.sh"
|