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

37 lines
899 B
JavaScript
Raw Normal View History

2018-07-08 21:22:10 -04:00
'use strict';
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-17 18:35:49 -04:00
domain_names: [],
2018-07-08 21:22:10 -04:00
forward_ip: '',
2018-07-08 22:21:03 -04:00
forward_port: null,
2018-07-24 02:56:39 -04:00
access_list_id: 0,
2018-08-07 06:27:20 -04:00
certificate_id: 0,
2018-07-08 21:22:10 -04:00
ssl_forced: false,
caching_enabled: false,
block_exploits: false,
advanced_config: '',
2018-07-23 01:12:24 -04:00
meta: {},
2018-07-17 18:35:49 -04:00
// The following are expansions:
owner: null,
2018-08-07 06:27:20 -04:00
access_list: null,
certificate: null
2018-07-08 21:22:10 -04:00
};
}
});
module.exports = {
Model: model,
Collection: Backbone.Collection.extend({
model: model
})
};