Changing security.txt to use github security advisories page.

- Fixes #2332
This commit is contained in:
Dessalines 2024-01-19 10:03:09 -05:00
parent 5ba9da1545
commit 1a33cd09be

View file

@ -4,14 +4,8 @@ export default async ({ res }: { res: Response }) => {
res.setHeader("content-type", "text/plain; charset=utf-8");
res.send(
`Contact: mailto:security@lemmy.ml
Contact: mailto:admin@` +
process.env.LEMMY_UI_LEMMY_EXTERNAL_HOST +
`
Contact: mailto:security@` +
process.env.LEMMY_UI_LEMMY_EXTERNAL_HOST +
`
Expires: 2024-01-01T04:59:00.000Z
`Contact: https://github.com/LemmyNet/lemmy-ui/security/advisories/new
Expires: 2025-01-01T04:59:00.000Z
`,
);
};