Closed kevinresol closed 6 years ago
I propose the argument (currently only port) of listen() to be revamped as follow, solves #34 & #47.
port
listen()
ufrontApp.listen({ port:2987, //optional path:'systemd', //optional: becomes `server.listen('systemd');` https: { // refer to node doc key: "", cert: "", }, parserLimit: '1500kb', // pass to body-parser staticPaths: ['.', 'files => ../uf-content'], // becomes `app.use( express.Express.serveStatic(".") );`` & `app.use( '/files', express.Express.serveStatic(js.Node.__dirname + "/../uf-content") );`` });
Maybe staticPaths can be put in ufront config
Hm...Server's listen() function is actually quite overloaded
I am not sure what is the best way to expose the listen function properly...
Cleaning up my old issues and I think this is no longer needed.
I propose the argument (currently only
port
) oflisten()
to be revamped as follow, solves #34 & #47.Maybe staticPaths can be put in ufront config