fix: use HTTPS for webhook URL (HQ-20)

- Default to https://hooks.donovankelly.xyz/hooks/agent
- Remove hardcoded token from compose defaults
- Token must be set via CLAWDBOT_HOOK_TOKEN env var in Dokploy
This commit is contained in:
2026-01-29 02:05:25 +00:00
parent b27a55eb91
commit 40c277c41a
2 changed files with 4 additions and 4 deletions

View File

@@ -5,8 +5,8 @@ import { eq, asc, desc, sql, inArray, or } from "drizzle-orm";
import { auth } from "../lib/auth";
const BEARER_TOKEN = process.env.API_BEARER_TOKEN || "hammer-dev-token";
const CLAWDBOT_HOOK_URL = process.env.CLAWDBOT_HOOK_URL || "http://72.60.68.214:18790/hooks/agent";
const CLAWDBOT_HOOK_TOKEN = process.env.CLAWDBOT_HOOK_TOKEN || process.env.CLAWDBOT_HOOK_FALLBACK_TOKEN || "";
const CLAWDBOT_HOOK_URL = process.env.CLAWDBOT_HOOK_URL || "https://hooks.donovankelly.xyz/hooks/agent";
const CLAWDBOT_HOOK_TOKEN = process.env.CLAWDBOT_HOOK_TOKEN || "";
// Fire webhook to Clawdbot when a task is activated
async function notifyTaskActivated(task: { id: string; title: string; description: string | null; source: string; priority: string }) {