aboutsummaryrefslogtreecommitdiff
path: root/Caddyfile
diff options
context:
space:
mode:
authorroot <root@caddy-256phi.local>2026-04-01 13:29:08 +0200
committerroot <root@caddy-256phi.local>2026-04-01 13:29:08 +0200
commit676e4f65e13cc4f95facdf450a842245751b333f (patch)
tree50b245b7e364ac6280c11951de78808e7cdcea54 /Caddyfile
parent62225f993fe7bf7e81105112d28b360a7001d57b (diff)
parent6caad3280121866fd2102798b53e0fd60068c66a (diff)
Merge branch 'master' of 10.0.0.37:/srv/git/256phi-mainWebsite
Diffstat (limited to 'Caddyfile')
-rw-r--r--Caddyfile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Caddyfile b/Caddyfile
index ff902c8..404b190 100644
--- a/Caddyfile
+++ b/Caddyfile
@@ -2,6 +2,10 @@
# Site's directory
root * /var/www/html/src
+ # Block direct access to JSON data files
+ @jsonFiles path *.json
+ respond @jsonFiles 404
+
# Enable the static file server.
file_server