Skip to content
Snippets Groups Projects
Commit dabe43de authored by Jonas Zohren's avatar Jonas Zohren :speech_balloon:
Browse files

Tone down message count and priority

parent a404ec44
Branches main
No related tags found
No related merge requests found
Pipeline #40300 passed
...@@ -14,7 +14,7 @@ async function main(): Promise<void> { ...@@ -14,7 +14,7 @@ async function main(): Promise<void> {
let domainScanCount = 0; let domainScanCount = 0;
let ringBufferPointer = 0; let ringBufferPointer = 0;
const ringBufferLength = 20; const ringBufferLength = 75;
let recentlySeenRingBuffer: string[] = new Array(ringBufferLength).fill(""); let recentlySeenRingBuffer: string[] = new Array(ringBufferLength).fill("");
const certStreamUrl = "wss://certstream.calidog.io/"; const certStreamUrl = "wss://certstream.calidog.io/";
...@@ -95,6 +95,7 @@ async function getAllowedLogLinks(): Promise<Set<string>> { ...@@ -95,6 +95,7 @@ async function getAllowedLogLinks(): Promise<Set<string>> {
function isDomainInteresting(domain: string): boolean { function isDomainInteresting(domain: string): boolean {
return ( return (
(!domain.endsWith(".tu-dortmund.de")) &&
(domain.includes("dortmund") && (domain.includes("dortmund") &&
(domain.includes("tu") || domain.includes("uni"))) || (domain.includes("tu") || domain.includes("uni"))) ||
domain.includes("jzohren") || domain.includes("jzohren") ||
...@@ -120,6 +121,6 @@ async function notifyGotify(title: string, message: string): Promise<void> { ...@@ -120,6 +121,6 @@ async function notifyGotify(title: string, message: string): Promise<void> {
headers: { headers: {
"Content-Type": "application/json", "Content-Type": "application/json",
}, },
body: JSON.stringify({ title, message }), body: JSON.stringify({ title, message, priority: 1 }),
}); });
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment