changeset 209:2667aaad8e08

Move the NODE_PATH location. Modules are now expected to be in /var/local/lib/node_modules. This is intended to make it easier to avoid running npm as root.
author John "Elwin" Edwards
date Tue, 26 Dec 2017 13:23:55 -0500
parents f06f2d1a5035
children b04313038a0b
files README.txt initscript rlgwebd.service
diffstat 3 files changed, 9 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/README.txt	Sat Jan 28 09:57:31 2017 -0500
+++ b/README.txt	Tue Dec 26 13:23:55 2017 -0500
@@ -8,9 +8,8 @@
 RLGWebD currently works with Node v0.10.
 
 It requires the 'posix', 'pty.js', and 'websocket' modules.  Currently,
-it expects them to be installed in the global location, which is 
-"/usr/lib/node_modules".  It is planned to eventually use a different
-location so that npm will not need to run as root.
+it expects them to be installed in "/var/local/lib/node_modules".  It
+is not recommended to run npm as root when installing the modules.
 
 init
 ---
@@ -22,14 +21,11 @@
 
 Configuration
 ---
-You can set some options by changing some variables in the first few
-lines of the rlgwebd script:
+A configuration file is installed at /etc/rlgwebd.conf.  It contains a
+list of options.
 
-Option		Variable	Default
-
-Chroot path	chrootDir	/var/dgl
-Username	dropToUser	rodney
-Server port	httpPort	8080
+If the domain_name option and the SSL-related options are set, rlgwebd
+will use HTTPS instead of insecure HTTP.
 
 If you change the chroot location, change it in the first line of the 
 Makefile too.
@@ -59,6 +55,7 @@
   Copy the C programs and the libraries they need into the chroot
   Install the main RLGWebD script in /usr/local/bin
   Place the systemd unit file in the proper directory
+  Copy a configuration file into /etc
 
 If you don't use systemd, or want to change the installation locations,
 you will have to edit the Makefile.
--- a/initscript	Sat Jan 28 09:57:31 2017 -0500
+++ b/initscript	Tue Dec 26 13:23:55 2017 -0500
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-NODE_PATH=/usr/lib/node_modules
+NODE_PATH=/var/local/lib/node_modules
 LOGFILE=/var/log/rlgwebd.log
 CTLSOCKET=/var/run/rlgwebd/rlgwebd.sock
 RLGWEBDJS=/usr/local/bin/rlgwebd
--- a/rlgwebd.service	Sat Jan 28 09:57:31 2017 -0500
+++ b/rlgwebd.service	Tue Dec 26 13:23:55 2017 -0500
@@ -4,7 +4,7 @@
 
 [Service]
 Type=simple
-Environment=NODE_PATH=/usr/lib/node_modules
+Environment=NODE_PATH=/var/local/lib/node_modules
 ExecStart=/usr/local/bin/rlgwebd
 ExecStop=/usr/local/bin/rlgwebd-stop
 Restart=on-failure