Compare commits
2 commits
b99cf702a0
...
858800ad2d
Author | SHA1 | Date | |
---|---|---|---|
858800ad2d | |||
28a5dcfa31 |
2 changed files with 4 additions and 3 deletions
|
@ -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,
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue