mirror of
https://github.com/msfjarvis/server-config
synced 2025-08-16 05:37:00 +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 /
|
if {path} ends_with /
|
||||||
to {dir}/index.php
|
to {dir}/index.php
|
||||||
}
|
}
|
||||||
status 403 /forbidden
|
internal /data
|
||||||
rewrite {
|
|
||||||
r ^/.*/data/?$
|
|
||||||
to /forbidden
|
|
||||||
}
|
|
||||||
header / {
|
header / {
|
||||||
-Content-Security-Policy
|
-Content-Security-Policy
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue