mirror of
https://github.com/msfjarvis/server-config
synced 2025-08-14 10:37:02 +05:30
Caddyfile: simplify securing /data
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
5b2665ee87
commit
350e04cf72
1 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue