l4n server
install & setup
-
install node.js version 8+
-
set
NODE_ENV
environment variable toproduction
-
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 l4ncd l4nnpm install l4n-server [additional l4n-server-modules]npx l4n-server init# edit ./settings.jsnpx l4n-server buildnpx webpacknode index.js
nginx setup
# site configserver {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 intervalproxy_set_header Upgrade $http_upgrade;proxy_set_header Connection "upgrade";}}