infrastructure/roles/webhook/vars/main.yml

46 lines
1.1 KiB
YAML
Raw Normal View History

2024-09-26 22:02:36 +00:00
---
webhook_teamspeak_fallback_db_token: "{{ vault_webhook.teamspeak_fallback_db_token }}"
webhook_teamspeak_user: 9987
webhook_teamspeak_group: 9987
webhook_svc:
name: webhook
domain: hook.serguzim.me
port: 9000
webhook_env:
TEAMSPEAK_USER: "{{ webhook_teamspeak_user }}"
TEAMSPEAK_GROUP: "{{ webhook_teamspeak_group }}"
webhook_yml:
- id: teamspeak-fallback-db
trigger-rule-mismatch-http-response-code: 400
execute-command: /config/teamspeak-fallback-db
pass-file-to-command:
- source: payload
name: data
envname: WEBHOOK_DATA
base64decode: true
trigger-rule:
and:
- match:
type: value
value: "{{ webhook_teamspeak_fallback_db_token }}"
parameter:
source: header
name: X-Webhook-Token
webhook_compose:
watchtower: true
image: ghcr.io/thecatlady/webhook
volumes:
- ./config:/config:ro
2024-10-13 18:32:07 +00:00
- teamspeak_fallback_data:/mnt/teamspeak_fallback_data
2024-09-26 22:02:36 +00:00
file:
services:
app:
command: ["-verbose", "-hooks=/config/hooks.yml"]
volumes:
2024-10-13 18:32:07 +00:00
teamspeak_fallback_data:
name: teamspeak_fallback_data