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:
@@ -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}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user