Skip to content

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

@MDeath

Description

@MDeath

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions