Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
netlify: Add multiple users & passwords
Add placeholder users/passwords to netlify.toml that are replaced by the environment variables stored in Netlify by running `netlify build` or `netlify deploy --build`. Included instructions for deployment to Netlify within the auspice README.
- Loading branch information
1 parent
2a9bb63
commit 6248ca7
Showing
3 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,3 +89,6 @@ Thumbs.db | |
# cluster log # | ||
############### | ||
*.sh.* | ||
|
||
# Local Netlify folder | ||
.netlify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
[build] | ||
publish = "_site/" | ||
command = "sed -i.bak \"s|USER1:PASSWORD1 USER2:PASSWORD2 USER3:PASSWORD3 USER4:PASSWORD4 USER5:PASSWORD5|${USER1}:${PASSWORD1} ${USER2}:${PASSWORD2} ${USER3}:${PASSWORD3} ${USER4}:${PASSWORD4} ${USER5}:${PASSWORD5}|g\" _site/netlify.toml && rm _site/netlify.toml.bak" | ||
|
||
[[redirects]] | ||
from = "/" | ||
to = "/who/" | ||
force = true | ||
|
||
[[headers]] | ||
for = "/*" | ||
[headers.values] | ||
Basic-Auth = "USER1:PASSWORD1 USER2:PASSWORD2 USER3:PASSWORD3 USER4:PASSWORD4 USER5:PASSWORD5" |