Created
June 21, 2011 15:17
-
-
Save mrjjwright/1038074 to your computer and use it in GitHub Desktop.
Expose Secure DB over node
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Start up the http server | |
console.log("Starting on port #{options.port}") | |
server.listen(options.port) | |
# Start up dnode and expose our remote secure API to the user. This API has built-in token based security so we will be ok if the | |
# web-socket is over https | |
remote = | |
db: dbSecure | |
dnode(remote).listen(server) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment