Implement single domain architecture for Hive platform

- Replace separate hive-api.home.deepblack.cloud subdomain with unified hive.home.deepblack.cloud
- Update Traefik routing: /api/* → backend, /* → frontend with proper priorities
- Add /api/health endpoint while maintaining /health for Docker health checks
- Update Socket.IO configuration to use single domain
- Fix CORS settings for consolidated domain
- Update MCP server endpoint to use /api path prefix
- Update all documentation to reflect single domain architecture

System now fully operational with simplified routing and proper SSL certificates.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
anthonyrawlins
2025-07-09 21:52:03 +10:00
parent dba1eac6b1
commit 8c3adf6d8f
6 changed files with 298 additions and 190 deletions

View File

@@ -62,8 +62,8 @@ export class HiveClient {
constructor(config?: Partial<HiveConfig>) {
this.config = {
baseUrl: process.env.HIVE_API_URL || 'https://hive.home.deepblack.cloud',
wsUrl: process.env.HIVE_WS_URL || 'wss://hive.home.deepblack.cloud',
baseUrl: process.env.HIVE_API_URL || 'https://hive.home.deepblack.cloud/api',
wsUrl: process.env.HIVE_WS_URL || 'wss://hive.home.deepblack.cloud/socket.io',
timeout: parseInt(process.env.HIVE_TIMEOUT || '30000'),
...config,
};
@@ -80,7 +80,7 @@ export class HiveClient {
async testConnection(): Promise<boolean> {
try {
const response = await this.api.get('/health');
return response.data.status === 'healthy';
return response.data.status === 'healthy' || response.status === 200;
} catch (error) {
throw new Error(`Failed to connect to Hive: ${error}`);
}