2017-12-20 18:02:37 -05:00
|
|
|
'use strict';
|
|
|
|
|
2018-07-29 21:59:05 -04:00
|
|
|
const Backbone = require('backbone');
|
2017-12-20 18:02:37 -05:00
|
|
|
|
|
|
|
const model = Backbone.Model.extend({
|
|
|
|
idAttribute: '_id',
|
|
|
|
|
|
|
|
defaults: function () {
|
|
|
|
return {
|
2018-01-04 01:18:48 -05:00
|
|
|
type: 'proxy',
|
2017-12-20 18:02:37 -05:00
|
|
|
hostname: '',
|
|
|
|
forward_server: '',
|
2018-01-04 01:18:48 -05:00
|
|
|
forward_host: '',
|
2017-12-20 18:02:37 -05:00
|
|
|
forward_port: 80,
|
|
|
|
asset_caching: false,
|
|
|
|
block_exploits: true,
|
|
|
|
ssl: false,
|
|
|
|
ssl_expires: 0,
|
|
|
|
force_ssl: false,
|
|
|
|
letsencrypt_email: '',
|
|
|
|
accept_tos: false,
|
|
|
|
access_list_id: '',
|
2018-02-16 01:57:54 -05:00
|
|
|
advanced: '',
|
|
|
|
incoming_port: 0,
|
|
|
|
protocols: []
|
2017-12-20 18:02:37 -05:00
|
|
|
};
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
Model: model,
|
|
|
|
Collection: Backbone.Collection.extend({
|
|
|
|
model: model
|
|
|
|
})
|
|
|
|
};
|