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