mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-05-01 11:32:28 +00:00
Closes #1114 Related To #1882 Related To #3537 Related To #3618 Co-authored-by: jwklijnsma <janwiebe@janwiebe.eu> Co-authored-by: SBado <16034687+SBado@users.noreply.github.com>
43 lines
1.3 KiB
JavaScript
43 lines
1.3 KiB
JavaScript
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,
|
|
hsts_enabled: false,
|
|
hsts_subdomains: false,
|
|
caching_enabled: false,
|
|
allow_websocket_upgrade: false,
|
|
block_exploits: false,
|
|
http2_support: false,
|
|
proxy_protocol_enabled: false,
|
|
loadbalancer_address: '',
|
|
advanced_config: '',
|
|
enabled: true,
|
|
meta: {},
|
|
// The following are expansions:
|
|
owner: null,
|
|
access_list: null,
|
|
certificate: null
|
|
};
|
|
}
|
|
});
|
|
|
|
module.exports = {
|
|
Model: model,
|
|
Collection: Backbone.Collection.extend({
|
|
model: model
|
|
})
|
|
};
|