README
netlify-plugin-password-protection
Soon to be added to the plugins directory https://github.com/netlify/plugins/pull/110
Based on the fantastic CLI tool staticrypt, this plugin will encrypt your files with a password from your NETLIFY environment variables
Setup
Install the plugin as a dependency to your repository
npm i --s netlify-plugin-password-protection
netlify.toml
Add the plugin in [[plugins]]
package = "netlify-plugin-password-protection"
Deploy your Netlify Site!
netlify.toml
Optional Configuration in [[plugins]]
package = "netlify-plugin-password-protection"
[plugins.inputs]
fileFilter = "*.html" # default
directoryFilter = ["!node_modules", "!admin", "!plugins"] # default
title = "Protected Page" # default
instructions = "" # default
We use paulmillr/readdirp and pass both options fileFilter
and directoryFilter
directly to choose which html files will be encrypted.
[License][license] MIT