Skip to content

feat: Enable using 0.0.0.0 as the address to listen on in apps/cli - #78

Merged
Connoropolous merged 2 commits into
mainfrom
cea-133-enable-using-0000-as-the-address-to-listen-on-in-appscli
Jul 5, 2025
Merged

Connoropolous merged 2 commits into
mainfrom
cea-133-enable-using-0000-as-the-address-to-listen-on-in-appscli

Conversation

@cyrusagent

Copy link
Copy Markdown
Contributor

Summary

  • Implements CYRUS_HOST_EXTERNAL environment variable to enable external server access
  • Adds configurable server host throughout the EdgeWorker architecture
  • Maintains backward compatibility with localhost as default
  • Enables Docker and container deployment scenarios

Changes Made

Core Changes

  • EdgeWorkerConfig: Added serverHost configuration option
  • SharedApplicationServer: Updated to accept configurable host parameter
  • SharedWebhookServer: Updated to accept configurable host parameter
  • EdgeWorker: Updated to pass host configuration through all components
  • CLI App: Added CYRUS_HOST_EXTERNAL environment variable support

Configuration

  • CYRUS_HOST_EXTERNAL=true → listens on 0.0.0.0 (external access)
  • CYRUS_HOST_EXTERNAL=false or unset → listens on localhost (default)

Documentation

  • Added CYRUS_HOST_EXTERNAL documentation to apps/cli/README.md
  • Explains use cases for Docker containers and external access scenarios

Test Plan

  • Verify TypeScript compilation passes for all affected packages
  • Confirm backward compatibility (default localhost behavior unchanged)
  • Validate configuration propagates through entire server chain
  • Test that environment variable correctly sets host binding
  • Ensure documentation is clear and accurate

🤖 Generated with Claude Code

cyrusagent and others added 2 commits July 4, 2025 21:13
- Add serverHost configuration option to EdgeWorkerConfig type
- Update SharedApplicationServer to accept configurable host parameter
- Update SharedWebhookServer to accept configurable host parameter
- Update EdgeWorker to pass serverHost configuration through all server components
- Update CLI app to set serverHost based on CYRUS_HOST_EXTERNAL environment variable
- Add documentation for CYRUS_HOST_EXTERNAL in apps/cli/README.md
- Maintain backward compatibility with localhost as default
- Enable external access when CYRUS_HOST_EXTERNAL=true (listens on 0.0.0.0)

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

Co-Authored-By: Claude <noreply@anthropic.com>
@Connoropolous
Connoropolous merged commit 0e15339 into main Jul 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants