mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
pass admins array from config to server config
This commit is contained in:
parent
2c5d8cfd30
commit
af17f8a76d
@ -12,6 +12,7 @@ module.exports = {
|
|||||||
'@mod1',
|
'@mod1',
|
||||||
'@mod2',
|
'@mod2',
|
||||||
],
|
],
|
||||||
|
admins: [], // add steam IDs here to enable #login without password
|
||||||
auth: { // If both username and password is set, HTTP Basic Auth will be used. You may use an array to specify more than one user.
|
auth: { // If both username and password is set, HTTP Basic Auth will be used. You may use an array to specify more than one user.
|
||||||
username: '', // Username for HTTP Basic Auth
|
username: '', // Username for HTTP Basic Auth
|
||||||
password: '', // Password for HTTP Basic Auth
|
password: '', // Password for HTTP Basic Auth
|
||||||
|
@ -109,6 +109,7 @@ Server.prototype.getParameters = function () {
|
|||||||
Server.prototype.start = function () {
|
Server.prototype.start = function () {
|
||||||
var parameters = this.getParameters()
|
var parameters = this.getParameters()
|
||||||
var server = new ArmaServer.Server({
|
var server = new ArmaServer.Server({
|
||||||
|
admins: config.admins,
|
||||||
battleEye: this.battle_eye ? 1 : 0,
|
battleEye: this.battle_eye ? 1 : 0,
|
||||||
config: this.id,
|
config: this.id,
|
||||||
disableVoN: this.von ? 0 : 1,
|
disableVoN: this.von ? 0 : 1,
|
||||||
|
Loading…
Reference in New Issue
Block a user