Caddyfile: simplify securing /data

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-04-26 05:37:56 +05:30
parent 5b2665ee87
commit 350e04cf72
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80

View file

@ -100,11 +100,7 @@ https://mail.msfjarvis.dev {
if {path} ends_with /
to {dir}/index.php
}
status 403 /forbidden
rewrite {
r ^/.*/data/?$
to /forbidden
}
internal /data
header / {
-Content-Security-Policy
}