Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
Community Plugin
View plugin on GitHub

gatsby-plugin-sectxt

Build Status

Gatsby plugin to create security.txt with sectxt

References:

Installation

yarn add gatsby-plugin-sectxt

Usage

// gatsby-config.js

module.exports = {
  /* Your site config here */
  plugins: [
    {
      resolve: `gatsby-plugin-sectxt`,
      options: {
        pathAlternative: "/security.txt",
        contacts: ["mailto:security@example.org"],
        expires: new Date("2022-12-31"),
        preferredLanguages: ["en", "de"],
        hiring: ["https://secjobs.example.org"],
      },
    },
  ],
}

Examples

See more complete examples.

License

MIT

© 2023 Gatsby, Inc.