diff --git a/root/etc/nginx/template.conf b/root/etc/nginx/template.conf index 8b9b788..5786671 100644 --- a/root/etc/nginx/template.conf +++ b/root/etc/nginx/template.conf @@ -153,6 +153,23 @@ http { fastcgi_index index.php; } + location = /api { + default_type application/json; + return 404 '{"error":"not found"}'; + } + location = /feed { + default_type application/json; + return 404 '{"error":"not found"}'; + } + location = /backup { + default_type application/json; + return 404 '{"error":"not found"}'; + } + location ~ ^.*\/(?:api|feed|backup)(?:$|\/) { + default_type application/json; + return 404 '{"error":"not found"}'; + } + # Health check location /health { return 200 'healthy';