2018-07-08 21:22:10 -04:00
|
|
|
const Backbone = require('backbone');
|
|
|
|
|
|
|
|
const model = Backbone.Model.extend({
|
|
|
|
idAttribute: 'id',
|
|
|
|
|
|
|
|
defaults: function () {
|
|
|
|
return {
|
2018-08-15 23:08:56 -04:00
|
|
|
id: undefined,
|
2018-07-08 21:22:10 -04:00
|
|
|
created_on: null,
|
|
|
|
modified_on: null,
|
2018-07-24 02:56:39 -04:00
|
|
|
domain_names: [],
|
2021-02-09 05:23:15 -05:00
|
|
|
forward_http_code: 0,
|
|
|
|
forward_scheme: null,
|
2018-07-08 21:22:10 -04:00
|
|
|
forward_domain_name: '',
|
2018-07-24 02:56:39 -04:00
|
|
|
preserve_path: true,
|
2018-08-07 06:27:20 -04:00
|
|
|
certificate_id: 0,
|
2018-07-24 02:56:39 -04:00
|
|
|
ssl_forced: false,
|
2019-02-18 03:21:45 -05:00
|
|
|
hsts_enabled: false,
|
|
|
|
hsts_subdomains: false,
|
2018-07-08 21:22:10 -04:00
|
|
|
block_exploits: false,
|
2018-11-20 17:04:31 -05:00
|
|
|
http2_support: false,
|
2018-08-22 00:31:03 -04:00
|
|
|
advanced_config: '',
|
2019-01-03 06:04:11 -05:00
|
|
|
enabled: true,
|
2018-07-24 02:56:39 -04:00
|
|
|
meta: {},
|
|
|
|
// The following are expansions:
|
2018-08-07 06:27:20 -04:00
|
|
|
owner: null,
|
|
|
|
certificate: null
|
2018-07-08 21:22:10 -04:00
|
|
|
};
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
Model: model,
|
|
|
|
Collection: Backbone.Collection.extend({
|
|
|
|
model: model
|
|
|
|
})
|
|
|
|
};
|