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

36 lines
878 B
JavaScript
Raw Normal View History

2017-12-20 18:02:37 -05:00
'use strict';
const Backbone = require('backbone');
2017-12-20 18:02:37 -05:00
const model = Backbone.Model.extend({
idAttribute: '_id',
defaults: function () {
return {
type: 'proxy',
2017-12-20 18:02:37 -05:00
hostname: '',
forward_server: '',
forward_host: '',
2017-12-20 18:02:37 -05:00
forward_port: 80,
asset_caching: false,
block_exploits: true,
ssl: false,
ssl_expires: 0,
force_ssl: false,
letsencrypt_email: '',
accept_tos: false,
access_list_id: '',
2018-02-16 01:57:54 -05:00
advanced: '',
incoming_port: 0,
protocols: []
2017-12-20 18:02:37 -05:00
};
}
});
module.exports = {
Model: model,
Collection: Backbone.Collection.extend({
model: model
})
};