l4n-server

1.0.0-rc.3 • Public • Published

l4n server

Build Status

install & setup

  • install node.js version 8+

  • set NODE_ENV environment variable to production

  • if you are running on windows, you (usually) need to install the windows build tools

npm install windows-build-tools --global
# you might also have to add python to your path
$env:path += ";" + $env:USERPROFILE + "\.windows-build-tools\python27"
  • then execute
mkdir l4n
cd l4n
npm install l4n-server [additional l4n-server-modules]
npx l4n-server init
# edit ./settings.js 
npx l4n-server build
npx webpack
node index.js

nginx setup

# site config
server {
    listen 443;
    server_name <hostname>;
 
    ssl on;
    ssl_certificate <path/to/fullchain.pem>;
    ssl_certificate_key <path/to/privkey.pem>;
 
    location / {
        proxy_http_version 1.1;
        proxy_pass http://127.0.0.1:8080;
        proxy_read_timeout 210s; # 180s is the ping interval
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
    }
}

Readme

Keywords

none

Package Sidebar

Install

npm i l4n-server

Weekly Downloads

1

Version

1.0.0-rc.3

License

MIT

Last publish

Collaborators

  • bonuspunkt