-
Notifications
You must be signed in to change notification settings - Fork 2k
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
NEEDS_REBASE_FOR_V0.10: allow for custom servers #739
Conversation
@mikermcneil Any thoughts on this? :) |
I don't want to be one of those guys, who bumps their PRs, but I'd really like to see this upstream anytime soon. |
Sorry for the delay. Can you create a new branch in your fork and check in an example app that uses a custom server? Just switching over to Spdy like in your example seems to break all of the Sails routing. Thanks! |
Thanks for the reply! :) Of course. I'll do one tomorrow after school (~16:00 UTC+2). Gotta catch some sleep. Haha. |
@silvinci @sgress454 this breaks things because, in order for this to work, the express middleware being applied in I think a more practical solution for the short term might be replacing the https or http server that |
@silvinci going to go ahead and close this one just to keep myself sane, but I'd love to see this rebased where it will still allow cookies and sessions and things to work. Thanks! |
See #737 (comment) for update on what's been discussed in the mean time |
@silvinci so to summarize the content of #737 and discussion above, what makes the most sense for now is to add SPDY support to our http hook by default. If you wouldn't mind setting that up, I'm on board! |
@mikermcneil Sorry man, was super troubled in the last week. Preparations for school tests and starting a business at the same time is heavy duty. Haha. However, if I understand correctly, you would not want users to push in a custom server (instance of |
@silvinci no problem! I think it's fine for us to add the ability to pass in a custom server- I'm just saying we might as well go ahead and add SPDY support by default, since the module falls back to HTTP anyways. Unless I'm missing something :) |
Sails breaks the common Node.js convention of passing around HTTP servers or middleware that can be used in such. When doing advanced network stuff it is the most convenient way to just use the middleware and set it up with whatever server(s) you need. I would suggest the following. As the network (and therefore server) settings are machine-dependent, they belong into
The last two options will only be used by advanced users. |
@silvinci sounds good to me! Only thing I'd add is that we currently have an |
Closing this to tidy up- but if there is still interest in this, I'm supportive, lets do it |
Allows users to optionally define their own custom server in their configuration.
Closes #737. Relates to #80.