"Fossies" - the Fresh Open Source Software Archive

Member "openlitespeed-1.6.6/nodejs_integration/nodejs/README-NODE" (22 Jan 2020, 1205 Bytes) of package /linux/www/openlitespeed-1.6.6.src.tgz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 ##
    2 ##  Open LiteSpeed is an open source HTTP server.                           *
    3 ##  Copyright (C) 2014  LiteSpeed Technologies, Inc.                        *
    4 ##
    5 ##  LiteSpeed Node.js implementation note...
    6 ##  This is sample implementation on how the LiteSpeed pass control to Node.js.
    7 ##
    8 ##  binding.gyp - binding (makefile) for Node.js C++ 
    9 ##  lsnodeapi.cc - Node.js V8 C++ addon
   10 ##  lsnodesrv.js - Java Script to run any java script inside the sandbox
   11 ##  myfirst.js - Java Script for testing purpose
   12 ##
   13 ##  (1) Need to install the LiteSpeed Node.js handler
   14 ## 
   15 ##  (2) Compile C++ addon module (binding.gyp, lsnodeapi.cc) for Node.js.
   16 ##      need: binding.gyp and lsnodeapi.cc
   17 ##         ./deps/npm/bin/node-gyp-bin/node-gyp --debug configure build
   18 ##  (3) Need to run LiteSpeed Java Script Server 
   19 ##          node lsnodesrv.js /home/user/lsws/socket/LS_NODE
   20 ##  (4) Testing the connection.
   21 ##          curl -i http://localhost:8088/myfirst.js
   22 ##
   23 ##  Note - 
   24 ##      The LiteSpeed handler and litespeed.js should agree on the server_path.
   25 ##      Currently I hard coded the path
   26 ##          server_path = "/home/user/lsws/socket/LS_NODE";
   27 ##      We should use the user parameters instead.
   28 ##
   29 ##
   30