fix: use hammer.donovankelly.xyz for all gateway access (HQ-21)

- Single domain for hooks + WebSocket (path-based routing)
- No need for ws.hammer or hooks.hammer subdomains
- Caddy proxies everything to gateway on this VPS
This commit is contained in:
2026-01-29 02:55:36 +00:00
parent ddaeb0c282
commit a765bf74b1
3 changed files with 5 additions and 5 deletions

View File

@@ -5,7 +5,7 @@ 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 || "https://hooks.hammer.donovankelly.xyz/hooks/agent";
const CLAWDBOT_HOOK_URL = process.env.CLAWDBOT_HOOK_URL || "https://hammer.donovankelly.xyz/hooks/agent";
const CLAWDBOT_HOOK_TOKEN = process.env.CLAWDBOT_HOOK_TOKEN || "";
// Fire webhook to Clawdbot when a task is activated

View File

@@ -23,7 +23,7 @@ services:
BETTER_AUTH_SECRET: ${BETTER_AUTH_SECRET}
BETTER_AUTH_URL: https://dash.donovankelly.xyz
COOKIE_DOMAIN: .donovankelly.xyz
CLAWDBOT_HOOK_URL: ${CLAWDBOT_HOOK_URL:-https://hooks.hammer.donovankelly.xyz/hooks/agent}
CLAWDBOT_HOOK_URL: ${CLAWDBOT_HOOK_URL:-https://hammer.donovankelly.xyz/hooks/agent}
CLAWDBOT_HOOK_TOKEN: ${CLAWDBOT_HOOK_TOKEN}
PORT: "3100"
depends_on:
@@ -35,7 +35,7 @@ services:
context: ./frontend
dockerfile: Dockerfile
args:
VITE_WS_URL: ${VITE_WS_URL:-wss://ws.hammer.donovankelly.xyz}
VITE_WS_URL: ${VITE_WS_URL:-wss://hammer.donovankelly.xyz}
VITE_WS_TOKEN: ${VITE_WS_TOKEN}
ports:
- "80"

View File

@@ -1,8 +1,8 @@
import { useState, useEffect, useRef, useCallback } from "react";
import { GatewayClient } from "../lib/gateway";
const WS_URL = import.meta.env.VITE_WS_URL || `wss://${window.location.hostname.replace("dash.", "ws.hammer.")}`;
const WS_TOKEN = import.meta.env.VITE_WS_TOKEN || "";
const WS_URL = import.meta.env.VITE_WS_URL || "wss://hammer.donovankelly.xyz";
const WS_TOKEN = import.meta.env.VITE_WS_TOKEN || import.meta.env.VITE_GATEWAY_TOKEN || "";
interface ChatMessage {
role: "user" | "assistant" | "system";