arma-server-web-admin/public/js/app/models/server.js
Björn Dahlgren 2e3f5eff79 Add support for additional configuration options
Options can be defined globally in config.js or per server in web ui
2019-06-02 12:26:40 +02:00

35 lines
762 B
JavaScript

define(function (require) {
"use strict";
var $ = require('jquery'),
_ = require('underscore'),
Backbone = require('backbone');
return Backbone.Model.extend({
defaults: {
additionalConfigurationOptions: '',
admin_password: '',
allowed_file_patching: 1,
auto_start: false,
battle_eye: false,
file_patching: false,
forcedDifficulty: '',
max_players: null,
mods: [],
motd: '',
number_of_headless_clients: 0,
parameters: [],
password: '',
persistent: false,
port: 2302,
state: null,
title: '',
von: false,
verify_signatures: false,
},
urlRoot: '/api/servers/',
});
});