-
Notifications
You must be signed in to change notification settings - Fork 769
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Description
Currently, the server binds to 0.0.0.0 (all interfaces) with no way to configure this. This can be a security concern in some environments where users want to restrict the server to only listen on localhost (127.0.0.1) or a specific network interface.
Proposed Solution
Add a HOST environment variable that allows users to specify which host/IP address the server should bind to:
- Default:
0.0.0.0(all interfaces - maintains backward compatibility) - Example:
HOST=127.0.0.1(localhost only for enhanced security) - Example:
HOST=192.168.1.100(specific network interface)
Changes Required
- Add
HOSTenvironment variable to.env.examplewith documentation - Update
server/index.jsto useHOSTenv var instead of hardcoded'0.0.0.0' - Update
vite.config.jsto useHOSTenv var for the Vite dev server
Use Cases
- Security-conscious deployments that should only be accessible locally
- Multi-homed servers where the application should only be available on a specific network
- Development environments where binding to all interfaces is not desired
🤖 Generated with Claude Code
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request