-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Config.js -- one place to define protocol (http/https) #1002
Comments
Sharing my config and findings thus far with this kit because you'll likely run into the same issues configuring browser-sync that I did when hooking things up to a configuration file. Wasted a lot of time trying to fulfill browser-sync's configuration needs and seeing strange errors. Things were fragile for a while until I distilled what was going on. It boiled down to needing to serve up the Anyway if someone wants to bake this config into the kit then its just a simply matter of keying off of config.js
start.js
server.js
|
After using this config, which does work. Thank you! Decided to handle HTTPS at the load balancer instead of within the app itself. Believe if configuration can be offloaded to some other part of the app then we should do it (load balancer), basic premise is to keep config as much out of the app as possible. Closing this for now as I don't believe it's actionable for most people and, in my opinion, is probably not the best route to go. For those interested in the load balancer approach, Amazon gives you SSL certs for free if you use their load balancer. More on that here. |
In the process of switching over from http to https and have come to agree with what @Strandedpirate suggested in #709 -- would be nice if there was one place to define which protocol (http || https) is to be used in the config.js.
The text was updated successfully, but these errors were encountered: