[READ-ONLY] Mirror of https://github.com/FoxxMD/komodo-utilities. Small utilities to enhance Komodo
gotify komodo
0

Configure Feed

Select the types of activity you want to include in your feed.

refactor!: Rename token ENV to be more accurate

FoxxMD (Nov 6, 2024, 8:19 AM EST) f15cc658 87b82f26

+6 -6
+2 -2
gotify/README.md
··· 5 5 Create a new container or stack with: 6 6 7 7 * Gotify URL as env `GOTIFY_URL` 8 - * Gotify App Token as env `GOTIFY_API_KEY` 8 + * Gotify App Token as env `GOTIFY_APP_TOKEN` 9 9 10 10 ```yaml 11 11 ··· 14 14 image: foxxmd/komodo-gotify-alerter:latest 15 15 environment: 16 16 - GOTIFY_URL=${GOTIFY_URL} 17 - - GOTIFY_API_KEY=${GOTIFY_API_KEY} 17 + - GOTIFY_APP_TOKEN=${GOTIFY_APP_TOKEN} 18 18 ports: 19 19 - "7000:7000" 20 20 ```
+4 -4
gotify/main.ts
··· 3 3 4 4 async function handle_alert(alert: Types.Alert) { 5 5 6 - const GOTIFY_API_KEY = Deno.env.get('GOTIFY_API_KEY'); 7 - if(GOTIFY_API_KEY === undefined) { 8 - console.error('GOTIFY_API_KEY not defined in ENV'); 6 + const GOTIFY_APP_TOKEN = Deno.env.get('GOTIFY_APP_TOKEN'); 7 + if(GOTIFY_APP_TOKEN === undefined) { 8 + console.error('GOTIFY_APP_TOKEN not defined in ENV'); 9 9 return; 10 10 } 11 11 const GOTIFY_URL = Deno.env.get('GOTIFY_URL'); ··· 93 93 94 94 await gotify({ 95 95 server: GOTIFY_URL, 96 - app: GOTIFY_API_KEY, 96 + app: GOTIFY_APP_TOKEN, 97 97 title: titleStr, 98 98 message: messageStr, 99 99 priority,