Compare commits

...

2 commits

Author SHA1 Message Date
858800ad2d
lint
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
2024-11-07 01:09:23 -06:00
28a5dcfa31
set reply-to header in automated emails
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
2024-11-07 01:08:09 -06:00
2 changed files with 4 additions and 3 deletions

View file

@ -145,6 +145,7 @@ export class EmailService {
try {
// TODO: htmlサニタイズ
const info = await transporter.sendMail({
inReplyTo: this.meta.maintainerEmail ? { name: this.meta.maintainerName || 'Instance Maintainer', address: this.meta.maintainerEmail } : undefined,
from: this.meta.email!,
to: to,
subject: subject,

View file

@ -20,11 +20,11 @@ export function makeHstsHook(host: string, preload: boolean = false): onRequestH
reply.header('strict-transport-security', 'max-age=31536000; includeSubDomains; preload');
}
done();
}
};
} else {
return (request, reply, done) => {
reply.header('strict-transport-security', 'max-age=15552000');
done();
}
};
}
}
}