Socket IO and Traefik Scale Help

Can I get your help with scaling socket io? As soon as I scale the instance of socket io with these labels the server with site works but if I connect socket from localhost it doesn't work.

      - "traefik.http.routers.service.rule=Host(``)"
      - ""
      - "traefik.http.routers.service.entrypoints=websecure"
      - "traefik.http.routers.service.tls.certresolver=myhttpchallenge"
      - "traefik.http.routers.service.rule=PathPrefix(`/`)"

Socket io server config

const io = require("")(
  process.env.MODE === "DEVELOPMENT" || process.env.MODE === "STAGING"
    ? {
        origins: ["http://localhost:3014", ""],
    : {}

Hi @geeek

Your rule is only for so only requests for that host would be served by it and on https.

You would need to define another route for http port 3014 and have traefik expose the port, have an entrypoint, etc.