Add EXTENDED_LOGS
This commit is contained in:
1 parent
21b69d1e1a
commit
2981fd661e
2 files changed
+5
-2
No files matched your search
@@ -3,6 +3,7 @@ exports.MAIN = {
|
||||
UFW_LOG_FILE: '/var/log/ufw.log',
|
||||
CACHE_FILE: '/var/cache/sefinek/ufw-abuseipdb-reporter.cache',
|
||||
SERVER_ID: null, // The server name that will be visible in reports (e.g., homeserver1, de1). Leave as null if you don't want to define it.
|
||||
EXTENDED_LOGS: false, // Specifies whether the script should display additional information in the logs.
|
||||
|
||||
// Network
|
||||
IP_REFRESH_SCHEDULE: '0 */6 * * *', // CRON: How often the script should check the IP address assigned by the ISP to prevent accidental self-reporting. If you have a static IP, you can set it to '0 0 1 * *' (once a month). Default: every 6 hours
|
||||
@@ -22,6 +23,7 @@ exports.MAIN = {
|
||||
DISCORD_WEBHOOK_USERNAME: 'SERVER_ID', // The name displayed as the message author on Discord. If you don't want to set it, leave the value as null. Providing SERVER_ID as a string will display this.MAIN.SERVER_ID.
|
||||
};
|
||||
|
||||
|
||||
// Generates a report submission.
|
||||
const serverId = this.MAIN.SERVER_ID ? `on ${this.MAIN.SERVER_ID} ` : '';
|
||||
exports.REPORT_COMMENT = ({ date, srcIp, dstIp, proto, spt, dpt, In, Out, mac, len, ttl, id, tos, prec, res, window, urgp, syn }, fullLog) =>
|
||||
|
||||
Reference in new issue
Block a user