Migrate services part

This commit is contained in:
Tobias Reisinger 2024-09-27 00:02:36 +02:00
parent 7c59e4ae57
commit 73bce8f6e5
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
157 changed files with 3883 additions and 9 deletions
roles/webhook/vars

View file

@ -0,0 +1,45 @@
---
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
- teamspeak-fallback-data:/mnt/teamspeak-fallback-data
file:
services:
app:
command: ["-verbose", "-hooks=/config/hooks.yml"]
volumes:
teamspeak-fallback-data:
name: teamspeak-fallback-data