Add TLS feature with Caddy

This commit is contained in:
2026-10-21 09:13:59 +01:00
parent 1462067e72
commit ed4a6f3ec8
109 changed files with 6374 additions and 156 deletions
@@ -0,0 +1,18 @@
type Params = {
text?: string | null;
secrets: string[];
};
export default function redactSecrets({ text, secrets }: Params) {
let output = text || "";
for (let i = 0; i < secrets.length; i++) {
const secret = secrets[i];
if (secret && secret.length >= 4) {
output = output.split(secret).join(`[redacted]`);
}
}
return output;
}