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:
@@ -5,8 +5,8 @@ import { eq, asc, desc, sql, inArray, or } from "drizzle-orm";
|
|||||||
import { auth } from "../lib/auth";
|
import { auth } from "../lib/auth";
|
||||||
|
|
||||||
const BEARER_TOKEN = process.env.API_BEARER_TOKEN || "hammer-dev-token";
|
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_URL = process.env.CLAWDBOT_HOOK_URL || "https://hooks.donovankelly.xyz/hooks/agent";
|
||||||
const CLAWDBOT_HOOK_TOKEN = process.env.CLAWDBOT_HOOK_TOKEN || process.env.CLAWDBOT_HOOK_FALLBACK_TOKEN || "";
|
const CLAWDBOT_HOOK_TOKEN = process.env.CLAWDBOT_HOOK_TOKEN || "";
|
||||||
|
|
||||||
// Fire webhook to Clawdbot when a task is activated
|
// Fire webhook to Clawdbot when a task is activated
|
||||||
async function notifyTaskActivated(task: { id: string; title: string; description: string | null; source: string; priority: string }) {
|
async function notifyTaskActivated(task: { id: string; title: string; description: string | null; source: string; priority: string }) {
|
||||||
|
|||||||
@@ -23,8 +23,8 @@ services:
|
|||||||
BETTER_AUTH_SECRET: ${BETTER_AUTH_SECRET}
|
BETTER_AUTH_SECRET: ${BETTER_AUTH_SECRET}
|
||||||
BETTER_AUTH_URL: https://queue.donovankelly.xyz
|
BETTER_AUTH_URL: https://queue.donovankelly.xyz
|
||||||
COOKIE_DOMAIN: .donovankelly.xyz
|
COOKIE_DOMAIN: .donovankelly.xyz
|
||||||
CLAWDBOT_HOOK_URL: ${CLAWDBOT_HOOK_URL:-http://72.60.68.214:18790/hooks/agent}
|
CLAWDBOT_HOOK_URL: ${CLAWDBOT_HOOK_URL:-https://hooks.donovankelly.xyz/hooks/agent}
|
||||||
CLAWDBOT_HOOK_TOKEN: ${CLAWDBOT_HOOK_TOKEN:-31dad3881e1a10a3275e643175fafeeb6645400940f79896}
|
CLAWDBOT_HOOK_TOKEN: ${CLAWDBOT_HOOK_TOKEN}
|
||||||
PORT: "3100"
|
PORT: "3100"
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
|||||||
Reference in New Issue
Block a user