mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-07 09:53:38 +00:00
42 lines
1.0 KiB
JavaScript
Executable File
42 lines
1.0 KiB
JavaScript
Executable File
const Backbone = require('backbone');
|
|
|
|
const model = Backbone.Model.extend({
|
|
idAttribute: 'id',
|
|
|
|
defaults: function () {
|
|
return {
|
|
name: '-',
|
|
eventSeverity: '-',
|
|
assetName: '-',
|
|
securityAction: '-',
|
|
waapIncidentType: '-',
|
|
httpSourceId: '-',
|
|
sourceIp: '-',
|
|
// 'Proxy-IP': '-',
|
|
proxyIp: '-',
|
|
httpHostName: '-',
|
|
httpMethod: '-',
|
|
// 'HTTP-Response-Code': '-',
|
|
httpResponseCode: '-',
|
|
httpUriPath: '-',
|
|
// 'Protection-Name': '-',
|
|
protectionName: '-',
|
|
matchedLocation: '-',
|
|
matchedParameter: '-',
|
|
matchedSample: '-',
|
|
eventPriority: '-',
|
|
eventTopic: '-',
|
|
eventName: '-',
|
|
// Suggested Remediation if Applicable
|
|
suggestedRemediation: '-'
|
|
};
|
|
}
|
|
});
|
|
|
|
module.exports = {
|
|
Model: model,
|
|
Collection: Backbone.Collection.extend({
|
|
model: model
|
|
})
|
|
};
|