Skip to content

hartantothio/netlify-plugin-basic-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Netlify Build Plugin: Secured Site with Basic Auth

Secure the site with Basic Auth.

Usage

Installing from your project's code

Install manually by adding the following lines to the project's netlify.toml file.

Reference for the netlify.toml can be found here

[[plugins]]
  package = "../netlify-build-plugins/netlify-plugin-gatsby-cache"

  [plugins.inputs]
    userEnvKey = 'AUTH_USER' # optional
    passEnvKey = 'AUTH_PASS' # optional
    branches = 'staging,stage' # optional
    pullRequest = true # optional. Default is true.

Inputs

userEnvKey - specify the environment key for the username (optional)

passEnvKey - specify the environment key for the password (optional)

branches - comma-separated string of branches to be secured

pullRequest - secure the deploy-preview build

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published