Fix nginx server binding to listen on all interfaces #11
+1
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Updated the nginx configuration to bind to all network interfaces instead of just the loopback interface when running in multi-server mode.
Changes
listendirective fromlisten 8501;tolisten 0.0.0.0:8501;Details
In multi-server configurations, the nginx reverse proxy needs to be accessible from outside the container. The previous configuration only listened on the default interface (typically localhost), which would prevent external clients from connecting to the load balancer. By explicitly binding to
0.0.0.0:8501, the nginx server now accepts connections on all IPv4 addresses, enabling proper load balancing across multiple Streamlit instances.https://claude.ai/code/session_01721rHYJhSZfJnnUpWHXbVs
Summary by CodeRabbit