Skip to content

Commit

Permalink
Add support for changing HTTP port in config
Browse files Browse the repository at this point in the history
  • Loading branch information
4ndr3w committed Aug 5, 2013
1 parent 7c748cb commit 92c01ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"autoTitle": true,

"HTTPport": 80,

"changeUser": true,
"user": "paperplane",
"group": "paperplane"
Expand Down
4 changes: 2 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ io.on("connection", function(socket)
});
});

// Bind to port 80, and switch to unprivileged user
server.listen(80);
// Bind HTTP server, and switch to unprivileged user
server.listen(config.HTTPport);
if ( config.changeUser )
{
process.setgid(config.group);
Expand Down

0 comments on commit 92c01ed

Please sign in to comment.