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

@@ -12,7 +12,7 @@ import time
from pathlib import Path
# Configuration
HIVE_API_URL = "http://localhost:8087"
HIVE_API_URL = "https://hive.home.deepblack.cloud/api"
CONFIG_FILE = "/home/tony/AI/projects/hive/config/hive.yaml"
def load_config():
@@ -136,7 +136,7 @@ def main():
if successful_registrations > 0:
print(f"\n🎉 Successfully registered {successful_registrations} agents!")
print("🔗 Check agent status: curl http://localhost:8087/api/agents")
print("🔗 Check agent status: curl https://hive.home.deepblack.cloud/api/agents")
else:
print("\n💔 No agents were successfully registered.")
sys.exit(1)