-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
browsersync should default to HTTPS, fixes #19 #21
Conversation
Does this mean you figured it out, or that you still couldn't make it work on https? |
This is working locally for me. |
Browsersync is running on HTTPS protocal in the browser. The CLI reports to running on HTTP though. It would be nice to have that correct but I think it might be the reverse proxy stuff? |
Looks like maybe some work remaining to do on tests? |
14608a1
to
41e46c7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, it definitely works, but it will be too confusing to people.
Could we at least change ddev browsersync
command to output the true information? Maybe it can say at the top, before launching browsersync "IT WILL BE HTTP NOT HTTP" :) and give a good URL. It might be possible to do something more sophisticated than that.
I think you already know that the reason it won't work by telling browsersync to use https is that then the ddev-router can't trust (or even decrypt) the https content.
So the problem is just that we're letting browsersync provide inadequate information, and we need to figure out a way around that.
I think it would be good to add more to the README about editing browser-sync.js as well. And how about adding "web" as one of the listed items/
I did the changes to expose the new ports in 1 - Opening 2 - By opening 3 - By opening In order to display https instead of http in the External link of the BrowserSync console we should add this option As a first conclusion after these scenarios. Changing the ports was beneficial, now the addon can also be used with HTTPS. The issue that needs to be solved is related to the External link displayed by BrowserSync in the console and which creates confusion but also errors in the situation in which it is used. |
Not sure why the tests are failing :( |
FYI it's worth thinking about allowing HTTPS communication between ddev-webserver and ddev-router, but that wouldn't fundamentally solve the problem here, because the bound port (443) by default might be changed. Thanks for all the work on this. |
This PR can be tested with |
I |
Used it in this demo repo: https://github.com/mandrasch/ddev-laravelmix-browsersync, worked fine (quick test). |
152e743
to
67b473d
Compare
Doggone those tests :) |
Will definitely review and take a look at tests. Just under the gun to get the traefik stuff done for a major release. Thanks for your patience! |
Thanks so much for the good work on this. Please take a look at and if you're OK with it, merge it in here. |
* Improve output of ddev browsersync to show https URL * Update tests and github setup to make work with https * Do mkcert -install so we can trust certs
Closing this in favor of #31 |
Sorry. #31 was a PR to this PR. Re-opening. |
Fixes
Currently, browsersync is configured to run on the HTTP. This is not optimal.
This PR changes browsersync to use the HTTPS protocal instead.
Note: When starting browsersync, it reports the "External URL" has HTTP. I tried adding
HTTPS: true
to the config file but this resulted in a broken DDEV (502)