Allow listen to all interfaces instead of localhost
- Dominant language
- TypeScript
- Stars
- 465
- Forks
- 47
- PR merge metrics
- No merged PRs in 30d
Description
Hi !
The UI server is currently hardcoded to listen to `localhost` only (see https://github.com/duckdb/duckdb-ui/blob/963e0e4d4c6f84b2536e3258fa204290fb8da93b/src/http_server.cpp#L188).
Listening to only `localhost` instead of all interfaces (e.g `0.0.0.0`) prevents running this in cloud-native setups such as within containers.
Most web servers allow configuring the interface just like for port and other configurations.
Would it be possible to add a configuration parameter for overriding this `localhost` ?
Thank you !
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at src/http_server.cpp around line 188 and inspect how the current localhost bind and other server configuration, such as the port, are handled. Identify the existing configuration entry point, then verify that an interface override can expose the server for container use while localhost remains the current default; confirm the behavior with the project's available checks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cloud, networking
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100