Compare commits

...

2 Commits

Author SHA1 Message Date
c7cc26a31c Merge branch 'main' into mimo/code/issue-694
Some checks failed
Review Approval Gate / verify-review (pull_request) Failing after 10s
CI / test (pull_request) Failing after 1m10s
CI / validate (pull_request) Failing after 1m15s
2026-04-22 01:06:41 +00:00
Alexander Whitestone
6aa7021030 fix: closes #694
Some checks failed
CI / test (pull_request) Failing after 57s
CI / validate (pull_request) Failing after 59s
Review Approval Gate / verify-review (pull_request) Failing after 8s
2026-04-20 21:39:08 -04:00

View File

@@ -5,6 +5,7 @@ This server acts as the central hub for the-nexus, connecting the mind (nexus_th
the body (Evennia/Morrowind), and the visualization surface.
"""
import asyncio
import os
import json
import logging
import signal
@@ -15,8 +16,10 @@ from typing import Set
import websockets
# Configuration
PORT = 8765
HOST = "0.0.0.0" # Allow external connections if needed
PORT = int(os.environ.get("NEXUS_PORT", 8765))
# Default to localhost for local-first security.
# Set NEXUS_HOST=0.0.0.0 explicitly to allow external connections.
HOST = os.environ.get("NEXUS_HOST", "127.0.0.1")
# Logging setup
logging.basicConfig(