fix: webhook defaults for cross-server deployment (HQ-20)
- Default CLAWDBOT_HOOK_URL to VPS hook-proxy (72.60.68.214:18790) - Add default CLAWDBOT_HOOK_TOKEN in compose for Dokploy deploys - Add extra_hosts for host.docker.internal resolution - Queue backend on remote server can now reach Clawdbot gateway
This commit is contained in:
@@ -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://127.0.0.1:18789/hooks/agent";
|
||||
const CLAWDBOT_HOOK_TOKEN = process.env.CLAWDBOT_HOOK_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 || "";
|
||||
|
||||
// Fire webhook to Clawdbot when a task is activated
|
||||
async function notifyTaskActivated(task: { id: string; title: string; description: string | null; source: string; priority: string }) {
|
||||
|
||||
Reference in New Issue
Block a user