Access lists shell, redirections work

This commit is contained in:
Jamie Curnow
2018-07-24 16:56:39 +10:00
parent 9da4f8ae87
commit 2a0c83433e
43 changed files with 2094 additions and 178 deletions

View File

@ -0,0 +1,24 @@
'use strict';
const Backbone = require('backbone');
const model = Backbone.Model.extend({
idAttribute: 'id',
defaults: function () {
return {
id: 0,
created_on: null,
modified_on: null,
// The following are expansions:
owner: null
};
}
});
module.exports = {
Model: model,
Collection: Backbone.Collection.extend({
model: model
})
};

View File

@ -13,7 +13,7 @@ const model = Backbone.Model.extend({
domain_names: [],
forward_ip: '',
forward_port: null,
access_list_id: null,
access_list_id: 0,
ssl_enabled: false,
ssl_provider: false,
ssl_forced: false,

View File

@ -10,14 +10,16 @@ const model = Backbone.Model.extend({
id: 0,
created_on: null,
modified_on: null,
owner: null,
domain_name: '',
domain_names: [],
forward_domain_name: '',
preserve_path: false,
preserve_path: true,
ssl_enabled: false,
ssl_provider: false,
ssl_forced: false,
block_exploits: false,
meta: []
meta: {},
// The following are expansions:
owner: null
};
}
});