Skip to content
This repository was archived by the owner on Jul 13, 2021. It is now read-only.
This repository was archived by the owner on Jul 13, 2021. It is now read-only.

Add server/client configuration to port option (like with "host" option) #79

Description

@DBosley
  • Operating System: Ubuntu 18.04
  • Node Version: 8.11.1
  • NPM Version: 6.0.0
  • webpack Version: 4.12.0
  • webpack-hot-client Version: 4.0.3
  • This is a bug
  • This is a feature request
  • This is a modification request

Code

// Suggested Configuration:
{
      host: {
        client: "my.website.com",
        server: "0.0.0.0"
      },
      https: true,
      port:{
        client: false, // number or false
        server: 8081
      }
    }

For Features; What is the motivation and/or use-case for the feature?

This would allow users who have a proxy configuration set up to allow the default port 443 for wss:// connections to work as intended. The issue I'm having is that the address the websocket tries to listen over is wss://my.website.com:8081 which means I have to set my nginx server running on docker to also listen to port 8081 as well as 443. The ideal way this would work for me would be that the client just tries to connect to wss://my.website.com without any port information added. Then it would route correctly through 443

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions