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

41 lines
1.2 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,
created_on: null,
modified_on: null,
domain_names: [],
forward_scheme: 'http',
forward_host: '',
forward_port: null,
access_list_id: 0,
certificate_id: 0,
ssl_forced: false,
2019-02-18 03:21:45 -05:00
hsts_enabled: false,
hsts_subdomains: false,
caching_enabled: false,
allow_websocket_upgrade: false,
block_exploits: false,
http2_support: false,
advanced_config: '',
2019-01-03 05:27:43 -05:00
enabled: true,
meta: {},
2018-07-17 18:35:49 -04:00
// The following are expansions:
owner: null,
access_list: null,
certificate: null
2018-07-08 21:22:10 -04:00
};
}
});
module.exports = {
Model: model,
Collection: Backbone.Collection.extend({
model: model
})
};