-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
listening as both https and http server simultaneously #126
Comments
Glad you found a solution, but I think the use case is too rar to add options for this to the webpack-dev-server. Even without accessing internals you could start a proxy server. |
I would like to see this actually. For the command line especially. |
Does this also work with websockets? |
This is actually not so rare situation 👍 I need also both http and https |
Redirect from http to https also would be ok |
bump. i always need both environments. |
@sokra Looks like this is not rare situation 😃 |
This is really not rare situation |
I would also need both! |
Yes please. |
We need this! |
I need this as well. Bump! |
another +1 for this.. |
So a trick would be to configure nginx and open the port 80 to reroute to the actual ssecure locatio. Something like the following in your nginx configuration This works for me, but I would like to know If i can remove the dependency on nginx and only configure web pack. |
For me - we need option to:
|
Having the option to redirect http to https would be quite helpful. Now I have to always add the https to the beginning of my development links in the browser. |
+1. I am using this to test development of an app to communicate with people who are not technically sophisticated. Easier to get them to type "devsite.com" into address bar than "https://devsite.com." |
Bump priority. it was a surprise to me that such a functionality is not out-of-the-box. |
Now that Chrome is blocking third party cookies unless they are secure, I think this feature is more important for developer experience since it will become more common for devs to have a need for https during dev. |
Bump priority. We NEED this feature. |
still need it |
I need it. |
PR welcome, we can start 2 servers |
Need this too |
I consider this a hack, so i still think a proper webpack property to allow redirect is needed, but here is a solution only using webpack and without having to spin up another local server frontend by nginx. Basic idea: spin up 2 webpack dev servers, 1 listening on http one on https. Have the one listening on http implement a proxy to redirect to https. // package.json
// webpack.config.js
|
Why you need HTTPS on dev env? Due http2/http3 support? |
I am guessing there are multiple use cases, but we need it to communicated with the auth service which does not do CORS with non |
Why not use HTTPs and self signed certificate? |
that's what we do |
I also need to serve both http and https, any progress on this thread ? |
Hi,
I'm moving a project over from browserify to webpack and hit a snag this afternoon. For arcane reasons (involving chrome and atom-shell/chromium behaviors) I need both https and http instances of local dev/testing web servers.
webpack-dev-server
is awesome, but I didn't find any directly supported way to instantiate on two ports at the same time.Here's what I ended up doing (full code context, farther down below)...
I'd like to ask whether this is a reasonable solution, or whether there's a better thing I should be doing, or alternatively whether a pull request to implement simultaneous https/http at the API level would be welcome.
Below, the full gulpfile.js chunk ...
Thank you.
The text was updated successfully, but these errors were encountered: