mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2026-06-18 10:29:13 +02:00
temmie/userweb: fix directory denylist enforcement
This commit is contained in:
@@ -107,25 +107,25 @@ in
|
|||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
${lib.concatMapStringsSep "\n" (d: ''
|
${lib.concatMapStringsSep "\n" (d: ''
|
||||||
<Directory "${d}">
|
<DirectoryMatch "/${d}(/|$)">
|
||||||
Require all denied
|
Require all denied
|
||||||
</Directory>
|
</DirectoryMatch>
|
||||||
'') [
|
'') [
|
||||||
".git"
|
"\\.git"
|
||||||
".hg"
|
"\\.hg"
|
||||||
".svn"
|
"\\.svn"
|
||||||
".ssh"
|
"\\.ssh"
|
||||||
".bzr"
|
"\\.bzr"
|
||||||
".venv"
|
"\\.venv"
|
||||||
"CVS"
|
"CVS"
|
||||||
"RCS"
|
"RCS"
|
||||||
|
|
||||||
"*.bak"
|
".*\\.bak"
|
||||||
"*.bak*"
|
".*\\.bak.*"
|
||||||
"*.bkp"
|
".*\\.bkp"
|
||||||
"*.bkp*"
|
".*\\.bkp.*"
|
||||||
"*.backup"
|
".*\\.backup"
|
||||||
"*.backup*"
|
".*\\.backup.*"
|
||||||
]}
|
]}
|
||||||
|
|
||||||
${lib.concatMapStringsSep "\n" (d: ''
|
${lib.concatMapStringsSep "\n" (d: ''
|
||||||
|
|||||||
Reference in New Issue
Block a user