added a feature to change uid/gid after startup to bind ports lower than
1024 on Linux
This commit is contained in:
parent
ff8a9d02fe
commit
2f6fb43152
|
@ -192,3 +192,9 @@ ffmpeg:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
||||||
link-domain-blacklist: []
|
link-domain-blacklist: []
|
||||||
|
|
||||||
|
# Drop root if started as root!!
|
||||||
|
setuid:
|
||||||
|
enabled: false
|
||||||
|
group: 'users'
|
||||||
|
user: 'user'
|
||||||
|
|
|
@ -99,7 +99,12 @@ var defaults = {
|
||||||
ffmpeg: {
|
ffmpeg: {
|
||||||
enabled: false
|
enabled: false
|
||||||
},
|
},
|
||||||
"link-domain-blacklist": []
|
"link-domain-blacklist": [],
|
||||||
|
setuid: {
|
||||||
|
enabled: false,
|
||||||
|
"group": "users",
|
||||||
|
"user": "nobody"
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -108,6 +108,9 @@ var Server = function () {
|
||||||
|
|
||||||
// background tasks init ----------------------------------------------
|
// background tasks init ----------------------------------------------
|
||||||
require("./bgtask")(self);
|
require("./bgtask")(self);
|
||||||
|
|
||||||
|
// setuid
|
||||||
|
require("./setuid");
|
||||||
};
|
};
|
||||||
|
|
||||||
Server.prototype.getHTTPIP = function (req) {
|
Server.prototype.getHTTPIP = function (req) {
|
||||||
|
|
Loading…
Reference in a new issue