docs: update the non-standard code configuration to forbid access to .env and .git

This commit is contained in:
Dorian Niemiec 2024-09-10 19:43:54 +02:00
parent 5ea8f52324
commit 9b4c350d3c

View file

@ -113,7 +113,7 @@ It's also recommended to forbid the access to ".env" file and ".git" directories
"nonStandardCodes": [ "nonStandardCodes": [
{ {
"scode": 403, "scode": 403,
"regex": "/^\\/\\.env(?:\\.local)?(?:$|[#?])/" "regex": "/^\\/\\.env(?:\\.local|\\.production)?(?:$|[#?])/"
}, },
{ {
"scode": 403, "scode": 403,