Caddyfile: protect data dir

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-04-16 19:40:57 +05:30
parent 914f8aa111
commit 128d0a6140
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80

View file

@ -96,6 +96,11 @@ https://mail.msfjarvis.dev {
if {path} ends_with /
to {dir}/index.php
}
status 403 /forbidden
rewrite {
r ^/.*/data/?$
to /forbidden
}
}
https://mc.msfjarvis.dev {