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:
@@ -5,7 +5,7 @@ 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 || "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 || "";
|
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
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ services:
|
|||||||
BETTER_AUTH_SECRET: ${BETTER_AUTH_SECRET}
|
BETTER_AUTH_SECRET: ${BETTER_AUTH_SECRET}
|
||||||
BETTER_AUTH_URL: https://dash.donovankelly.xyz
|
BETTER_AUTH_URL: https://dash.donovankelly.xyz
|
||||||
COOKIE_DOMAIN: .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}
|
CLAWDBOT_HOOK_TOKEN: ${CLAWDBOT_HOOK_TOKEN}
|
||||||
PORT: "3100"
|
PORT: "3100"
|
||||||
depends_on:
|
depends_on:
|
||||||
@@ -35,7 +35,7 @@ services:
|
|||||||
context: ./frontend
|
context: ./frontend
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
args:
|
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}
|
VITE_WS_TOKEN: ${VITE_WS_TOKEN}
|
||||||
ports:
|
ports:
|
||||||
- "80"
|
- "80"
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { useState, useEffect, useRef, useCallback } from "react";
|
import { useState, useEffect, useRef, useCallback } from "react";
|
||||||
import { GatewayClient } from "../lib/gateway";
|
import { GatewayClient } from "../lib/gateway";
|
||||||
|
|
||||||
const WS_URL = import.meta.env.VITE_WS_URL || `wss://${window.location.hostname.replace("dash.", "ws.hammer.")}`;
|
const WS_URL = import.meta.env.VITE_WS_URL || "wss://hammer.donovankelly.xyz";
|
||||||
const WS_TOKEN = import.meta.env.VITE_WS_TOKEN || "";
|
const WS_TOKEN = import.meta.env.VITE_WS_TOKEN || import.meta.env.VITE_GATEWAY_TOKEN || "";
|
||||||
|
|
||||||
interface ChatMessage {
|
interface ChatMessage {
|
||||||
role: "user" | "assistant" | "system";
|
role: "user" | "assistant" | "system";
|
||||||
|
|||||||
Reference in New Issue
Block a user