NginxProxyManager / NginxProxyManager/nginx-proxy-manager

WebSocket proxy to Streamlit fails when using custom ports (8080/8443) in Nginx Proxy Manager

Open
#5,491 0 comments 0 reactions 0 assignees View on GitHub

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:

The WebSocket connection cannot be established.


Image

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.