> > Maybe you can just use the firewall on your VM to block access to port >> 8080? >> > > I'd rather do it in node, in the same app, if possible... > >
In that case, I think the best approach would be to create an express.js middleware component to wrap up tiddlywiki5's server functionality. That would make it easier to write custom apps that combine other bits of middleware with TiddlyWiki5 (such as the google authentication middleware you're interested in here). One would be taking these ingredients: * TW5's existing server.js implementation, which shows how to respond to the different HTTP calls that are required by the TiddlyWeb-compatible HTTP interface * This sample node.js app for using tiddlywiki5 as a require()'d component: https://github.com/Jermolene/TiddlyWiki5DemoApp * A simple express sample app, such as http://www.hacksparrow.com/how-to-write-midddleware-for-connect-express-js.html Then one would refactor server.js to use the newly exposed middleware components. All of this is on the roadmap, but not something I was planning to do immediately. Best wishes Jeremy -- Jeremy Ruston mailto:[email protected] -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywikidev. For more options, visit https://groups.google.com/groups/opt_out.
