Mercurial > hg > rlgwebd
comparison rlgwebd.js @ 194:5483d413a45b
RLGWebD: move the control socket into /var/run.
This is a more standard location. /run is preferred by systemd, but
portability to non-systemd systems is important.
author | John "Elwin" Edwards |
---|---|
date | Thu, 14 Jan 2016 19:10:46 -0500 |
parents | 9758ca68e7f1 |
children |
comparison
equal
deleted
inserted
replaced
193:80ca029f0906 | 194:5483d413a45b |
---|---|
12 var pty = require("pty.js"); | 12 var pty = require("pty.js"); |
13 var WebSocketServer = require("websocket").server; | 13 var WebSocketServer = require("websocket").server; |
14 | 14 |
15 /* Configuration variables */ | 15 /* Configuration variables */ |
16 // The first file is NOT in the chroot. | 16 // The first file is NOT in the chroot. |
17 var ctlsocket = "/var/local/rlgwebd/ctl"; | 17 var ctlsocket = "/var/run/rlgwebd.sock"; |
18 var httpPort = 8080; | 18 var httpPort = 8080; |
19 var chrootDir = "/var/dgl/"; | 19 var chrootDir = "/var/dgl/"; |
20 var dropToUser = "rodney"; | 20 var dropToUser = "rodney"; |
21 var serveStaticRoot = "/var/www/"; // inside the chroot | 21 var serveStaticRoot = "/var/www/"; // inside the chroot |
22 | 22 |