NginxProxyManager / NginxProxyManager/nginx-proxy-manager
WebSocket proxy to Streamlit fails when using custom ports (8080/8443) in Nginx Proxy Manager
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 34.2k
- Forks
- 3.9k
- Avg merge
- 21h 12m
- Merged PRs (30d)
- 20
Description
I deployed Nginx Proxy Manager using Docker:
services:
app:
image: jc21/nginx-proxy-manager:latest
ports:
- '81:81'
- '80:80'
- '443:443'
restart: unless-stopped
volumes:
- /mnt/pool0/data/appdata/npm/data:/data
- /mnt/pool0/data/appdata/npm/letsencrypt:/etc/letsencrypt
I configured it to proxy a Streamlit app running on port 8501 to the domain st.nas.lan.
WebSocket support is enabled, and I am using a wildcard certificate *.nas.lan.
With the default ports (80/443), everything works correctly:
Both the web app and WebSocket connections work as expected.
However, after changing the exposed ports to 8080 and 8443 (e.g. 8080:80 and 8443:443), I encounter issues:
-
http://st.nas.lan:8080/ loads, but WebSocket fails:
ws://st.nas.lan:8080/_stcore/stream
-
https://st.nas.lan:8443/ also fails:
wss://st.nas.lan:8443/_stcore/stream
The WebSocket connection cannot be established.
Question:
Is there any special configuration required in Nginx Proxy Manager when using non-standard ports (e.g. 8080/8443) for WebSocket proxying?
Or is this a limitation/known issue?
Any help would be appreciated.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Streamlit WebSocket failure with the shown Docker port mappings and the Nginx Proxy Manager proxy-host settings. Compare the working 80/443 setup with 8080/8443 and determine whether an available configuration fixes the connection or whether the behavior is a confirmed limitation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, nginx
- Domain
- devops, networking
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100