mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-12-19 05:43:25 +00:00
Initial commit
This commit is contained in:
31
manager/src/frontend/js/models/host.js
Normal file
31
manager/src/frontend/js/models/host.js
Normal file
@@ -0,0 +1,31 @@
|
||||
'use strict';
|
||||
|
||||
import Backbone from 'backbone';
|
||||
|
||||
const model = Backbone.Model.extend({
|
||||
idAttribute: '_id',
|
||||
|
||||
defaults: function () {
|
||||
return {
|
||||
hostname: '',
|
||||
forward_server: '',
|
||||
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: '',
|
||||
advanced: ''
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = {
|
||||
Model: model,
|
||||
Collection: Backbone.Collection.extend({
|
||||
model: model
|
||||
})
|
||||
};
|
||||
Reference in New Issue
Block a user