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

41 lines
1.3 KiB
JavaScript
Raw Normal View History

2018-07-09 01:22:10 +00:00
'use strict';
const Backbone = require('backbone');
const model = Backbone.Model.extend({
idAttribute: 'id',
defaults: function () {
return {
2018-12-11 23:47:12 +00:00
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,
caching_enabled: false,
allow_websocket_upgrade: false,
block_exploits: false,
http2_support: false,
ignore_invalid_upstream_ssl: false,
advanced_config: '',
meta: {},
2018-07-17 22:35:49 +00:00
// The following are expansions:
2018-12-11 23:47:12 +00:00
owner: null,
access_list: null,
certificate: null
2018-07-09 01:22:10 +00:00
};
}
});
module.exports = {
Model: model,
Collection: Backbone.Collection.extend({
model: model
})
};