Opened 13 years ago
Last modified 11 years ago
#212 new enhancement
Add FastCGI support to node.js
Reported by: | geofft | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | Fedora 20 |
Component: | web | Keywords: | |
Cc: |
Change History (9)
comment:1 Changed 13 years ago by ezyang
- Milestone The Distant Future deleted
comment:2 Changed 13 years ago by ezyang
- Priority changed from tiny to minor
comment:3 Changed 13 years ago by ezyang
- Type changed from defect to enhancement
comment:4 Changed 12 years ago by andersk
comment:5 Changed 11 years ago by achernya
- Milestone set to Fedora 19
Fedora 19 will be the first Scripts release that has packaged node.js, we should provide this feature. I've built the Fedora 19 nodejs packages on scripts-f17-dev for anyone that wants to work on it now.
comment:6 Changed 11 years ago by hobinjk
https://github.com/hobinjk/nodejs-fcgi-shim has a simple implementation, I (or whoever has time) should write the thing that installs it
comment:7 Changed 11 years ago by andersk
We need to make the node process listen on an fd (such as stdin), not a TCP port, so that other scripts users and/or visitors can’t visit the TCP port directly and bypass Apache authentication.
comment:8 Changed 11 years ago by geofft
achernya says, first, that this approach is fundamentally not going to work because it doesn't allow websockets support, and second, that he has a more up-to-date version in his web_scripts: this appears to be /mit/achernya/web_scripts/node, a fork of github.com/samcday/node-fastcgi-application.
comment:9 Changed 11 years ago by andersk
I’m not sure websockets are a thing yet on Apache at all. (Maybe that changes a little bit with 2.4’s mod_proxy_wstunnel? But that doesn’t look like quite what we want either.) Although it’s true that we probably don’t want to lock ourselves into a protocol that doesn’t support them.
gdb seems to have solved this problem for stripe-ctf.
https://blog.gregbrockman.com/2012/08/system-design-stripe-capture-the-flag/ https://github.com/gdb/ctf-helpers/blob/master/bin/fcgi-shim