nginx-proxy-manager/frontend/js/models/redirection-host.js

38 lines
1.0 KiB
JavaScript
Raw Normal View History

2018-07-08 21:22:10 -04:00
const Backbone = require('backbone');
const model = Backbone.Model.extend({
idAttribute: 'id',
defaults: function () {
return {
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: [],
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,
advanced_config: '',
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
})
};